[jboss-user] [JBoss Seam] - Pages.enterPage and FaceletsViewHandler.buildView

andrew.rw.robinson do-not-reply at jboss.com
Wed Aug 8 18:58:44 EDT 2007


I am trying to get the functionality of JBoss Seam's pages.xml to work with facelet include files. This way I can have security and action methods called on included views as well as the main page.

The problem I am having is one of order of execution. Pages.enterPage is called from a PhaseListener in the before render event. FaceletsViewHandler.buildView is called from the renderView function. So, when the page is "entered", the view is not built yet, so I can't surf the component hierarchy of the page to find my include components and determine their view ID to have Pages check on it.

Anyone have any bright ideas on how I can get the Pages functionality to be executed after the view is built, but before it is rendered without having to change Facelets or Seam source?

-Andrew

Facelets 1.1.11
Seam 1.2.1

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072237#4072237

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072237



More information about the jboss-user mailing list