What is the 'official' SEAM way of listening to JSF-SEAM phases? -


A simple question on the title.

My case is that I want to "Hear before" RENDER_RESPONSE "phase, and change some components into internal condition.

What steps does the application" Way "?

If you want to change the JSF component internal state If you are, trust the JSF step listener. The right path to declare JSF step listener is shown.

  @name ("Application Facilitator") @ sko (ScopeType .application) Public Class ApplicationFix Listener Transparently called "(Org.jboss.seam.beforePhase") by the CAM * / @ Observer (PhaseEvent event) {} / ** * CAM Public void (PhaseEvent event) {}} {/}>  

transparently by * / @ Observav ("org.jboss.seam.afterPhase") but if you seam relevant If you want to change the component state, use

  @ name ("applicationfiles Public class ApplicationPhaseListener {@Observer ("applicationListener") Public Zero App Listener () {}}  

You

< Em> Your program can programatically

  events.instance (). RaiseEvent ("applicationListener");  

Whatever action method has been deprecated using @RiceAvent annotation

  @RaiseEvent ("applicationListener ") Public Zero doSomething () {}  

pages.xml

  & lt; Page ID = "& lt; PAGE_ID_GOES_HERE" & gt; & Gt; & Lt; Raise-event type = "applicationListener" /> & Lt; / Page & gt;  

Comments