action method is not called in JSF

Posted by gurupriyan.e on Stack Overflow See other posts from Stack Overflow or by gurupriyan.e
Published on 2010-06-15T08:55:11Z Indexed on 2010/06/15 11:42 UTC
Read the original article Hit count: 264

Filed under:

This is my Phase Listener

public class AdminPhaseListener implements PhaseListener {

private static final long serialVersionUID = -1161541721597667238L;

public void afterPhase(PhaseEvent e) {
    System.out.println("after Phase " + e.getPhaseId());
}

public void beforePhase(PhaseEvent e) {
    System.out.println("before Phase " + e.getPhaseId());
    if(e.getPhaseId()== PhaseId.RESTORE_VIEW)
    {

    }

}

public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}}

On click of a Command Button in my page, i call an action method and do some processing but the action method is not called at all, but in the server log , i could see the messages printed by my PhaseListener for all the Phases.

If my view was not changed, It would have stopped after the RESTORE_VIEW Phase right?

any thoughts?

© Stack Overflow or respective owner

Related posts about jsf