Re: Action not firing before defined PhaseId

Splash Forums PrettyFaces Users Action not firing before defined PhaseId Re: Action not firing before defined PhaseId


Hmmm, seems like the invocation happens in a different context here:

at java.lang.Thread.dumpStack(
at siteUtils.siteTasks.loadCommunity( <---- your method gets invoked
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at javax.faces.component.UIViewRoot.notifyPhaseListeners( <---- JSF notifies the view event listeners
at javax.faces.component.UIViewRoot.notifyBefore(
at javax.faces.component.UIViewRoot.encodeBegin(
at javax.faces.component.UIComponent.encodeAll(
at com.sun.faces.application.ViewHandlerImpl.doRenderView( <---- JSF renders the view
at com.sun.faces.application.ViewHandlerImpl.renderView(

So in this case your method is actually called before the rendering occurs but WITHIN the rendering phase. That seems to be the main difference.

Unfortunately I don’t know if we can do anything to help you with this problem. I think a PhaseListener is the only place for PrettyFaces to hook into the phase execution.

@lincoln: any thoughts on this one?