|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttutorial.jsf.ajax.AjaxListener
public class AjaxListener
Title: AjaxComponent
A simple phase listener to filter Ajax requests. Examines request in RESTORE_VIEW afterphase. Avoids any uneccessary lifecycle processing.
Constructor Summary | |
---|---|
AjaxListener()
default empty constructor |
Method Summary | |
---|---|
void |
afterPhase(javax.faces.event.PhaseEvent event)
Handling any potential Ajax component requests after the Restore View phase makes the restored view available to us. |
void |
beforePhase(javax.faces.event.PhaseEvent arg0)
Here we are just using the beforePhase to do some logging. |
javax.faces.event.PhaseId |
getPhaseId()
|
protected void |
handleAjaxRequest(javax.faces.context.FacesContext context,
java.lang.String ajaxClientId)
Deal with the ajax request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxListener()
Method Detail |
---|
public void afterPhase(javax.faces.event.PhaseEvent event)
afterPhase
in interface javax.faces.event.PhaseListener
protected void handleAjaxRequest(javax.faces.context.FacesContext context, java.lang.String ajaxClientId)
context
- ajaxClientId
- public void beforePhase(javax.faces.event.PhaseEvent arg0)
beforePhase
in interface javax.faces.event.PhaseListener
public javax.faces.event.PhaseId getPhaseId()
getPhaseId
in interface javax.faces.event.PhaseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |