## org.apache.myfaces.custom.ajax.api
Class AjaxPhaseListener

    java.lang.Object
      org.apache.myfaces.custom.ajax.api.AjaxPhaseListener

All Implemented Interfaces:
  java.util.EventListener, javax.faces.event.PhaseListener, java.io.Serializable

public class AjaxPhaseListener
extends java.lang.Object
implements javax.faces.event.PhaseListener

Version:
  $Revision: $ $Date: $

  $Log: $
Author:
  Martin Marinschek
See Also:
  Serialized Form

Constructor Summary
`AjaxPhaseListener()`

Method Summary
`void` `afterPhase(javax.faces.event.PhaseEvent event)`
`void` `beforePhase(javax.faces.event.PhaseEvent event)`
`javax.faces.event.PhaseId` `getPhaseId()` We need to hang our AJAX phase listener in the invoke application phase as it is impossible to stop rendering in the render response phase.
`static java.lang.Object` `getValueForComponent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AjaxPhaseListener

    public AjaxPhaseListener()

Method Detail

### getValueForComponent

    public static java.lang.Object getValueForComponent(javax.faces.context.FacesContext facesContext,
                                                        javax.faces.component.UIComponent component)

### afterPhase

    public void afterPhase(javax.faces.event.PhaseEvent event)

  Specified by:
    `afterPhase` in interface `javax.faces.event.PhaseListener`

### beforePhase

    public void beforePhase(javax.faces.event.PhaseEvent event)

  Specified by:
    `beforePhase` in interface `javax.faces.event.PhaseListener`

### getPhaseId

    public javax.faces.event.PhaseId getPhaseId()

  We need to hang our AJAX phase listener in the invoke application phase as it is impossible to stop rendering in the render response phase.

  Specified by:
    `getPhaseId` in interface `javax.faces.event.PhaseListener`
  Returns:
    PhaseId The AJAX phase listener will be invoked after the invoke application phase.