0 Replies Latest reply on May 14, 2009 3:36 PM by Martin Regele

    navigation problem due to conversation

    Martin Regele Newbie

      Hello everybody,



      I think I have a problem with the seam conversation model.


      First my System:


      Jboss 4.2.3.GA


      Jboss Seam 2.1.1.GA


      I have three seam generated sites: Articles.xhtml, ArticlesEdit.xhtml and ArticlesList.xhtml. It worked all pretty fine with the standard navigation which was generated. Now I changed the menubar of the application, that I can navigate from every site directly to the “create articles” site (ArticlesEdit.xhtml with an empty form). The menubar is a richDropDown menu now.


      But when I show an article on Articles.xhtml and then directly navigate to “create articles”, the shown article is filled into the form, because the opened conversation is still active.  So I tried to close the conversation manually via pages.xml this way:


      The Menubar:


      <rich:dropDownMenu rendered="#{identity.loggedIn}">
         <f:facet name="label"> 
            <h:panelGroup>
               <h:outputText value="Articlemanagement"/>
            </h:panelGroup>
         </f:facet>
         <rich:menuItem submitMode="ajax" value="Add Article" action="article"/>
         <rich:menuItem submitMode="ajax" value="search" action="/ArticlesList.xhtml"/>                
      </rich:dropDownMenu>
      



      Pages.xml:


      <page view-id="*">
         <navigation>
            <rule if-outcome="article"> 
               <end-conversation />            
               <redirect view-id="/ArticlesEdit.xhtml"/>   
            </rule>
         </navigation>      
      </page>
      



      The redirect to the site works pretty fine, but the conversation does not end.


      How can i handle this problem?


      Thank you for your ideas! (Please excuse my English)