[jboss-user] [JBoss Seam] - Re: PhaseListener in Seam 2.0
do-not-reply at jboss.com
Tue Jan 22 11:01:51 EST 2008
"wachtda" wrote : Peter, that means that it should possible to make a PhaseListener as in JSF?
Yes, this is quite possible, there is just no guarantee on ordering so you should be aware of that.
With the observer, why not base your execution on the phases you are interested in?
| public void beforePhase(PhaseEvent event)
| if(event.getPhaseId() == PhaseId.PHASE_IM_INTERESTED_IN)
| ... ...
If you are not interested in the beforePhase of RESTORE_VIEW because the view is not yet restored, just don't process during that phase.
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122270#4122270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122270
More information about the jboss-user