Hey Everybody,
I'm using myfaces 1.1.1.
I wrote a PhaseListener and it works fine the PhaseId
is set to RESTORE_VIEW, however any other PhaseId does
not work.
Has anyone else experienced something similar?
Thanks,
- Ole
Here's the code:
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import javax.faces.application.Application;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;
public class HTMLTableTreeViewerAjaxPhaseListener
implements PhaseListener {
private static Logger theLogger =
Logger.getLogger(Mock.class.getName());
public PhaseId getPhaseId() {
return PhaseId.APPLY_REQUEST_VALUES;
}
public void afterPhase(PhaseEvent e) {
theLogger.info("KICKING IN THE BEFORE PHASE!");
}
public void beforePhase(PhaseEvent e) {
theLogger.info("KICKING IN THE AFTER PHASE!");
}
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com