2 Replies Latest reply on Oct 10, 2007 10:28 AM by franck93

    Pages.xml : starting a conversation from a menu bar

    franck93

      As you know facelet provides a mechanism template which one may use to include a menubar (menubar.xhtml) in many pages.

      Let's assume that a link from the menubar starts an action which must begin a seam conversation. How can one do that if the menu bar is used in dozens of pages. Do you have to specify the following code in all pages that include the menubar.xhtml ??? ( if so i think this is error prone because if you add the menubar to another page you have to add the following to that page as well)


      <page view-id="/page1.xhtml">
       <navigation from-action="#{editWebdoc.display}">
       <begin-conversation />
       <redirect view-id="/webdoc.xhtml"/>
       </navigation>
      
      ....
      <page view-id="/page2.xhtml">
       <navigation from-action="#{editWebdoc.display}">
       <begin-conversation />
       <redirect view-id="/webdoc.xhtml"/>
       </navigation>
      


      I know that one can use the @begin annotation instead, but in such case we still have to specify the page to redirect to after the action completes for all pages that include the menu bar. And that page would be the same for all pages including the menubar.

      Do you have an idea???