0 Replies Latest reply on Aug 4, 2011 12:28 PM by Andrej Afanasjev

    Global navigation

    Andrej Afanasjev Newbie

      Hello.
      I have some questions about global navigation.
      Suppose I have 2 (or more) isolated components (User management and Document management ) with global navigation rules in each.


      Example:
      User management component pages-config-um.xml:


      <page view-id="*" login-required="true">
         <navigation>                   
            <rule if-outcome="userManagement">
               <end-conversation/>
               <redirect view-id="/um/administration/user/userList.xhtml" />
            </rule>
            .... 
         </navigation>
      </page>
      



      This mean 'whenever you are, you can navigate to user management using

      action="userManagement"


      Same logic for document management component pages-config-doc.xml:


      <page view-id="*" login-required="true">
         <navigation>                   
            <rule if-outcome="documentManagement">
               <end-conversation/>
               <redirect view-id="/doc/administration/document/documentList.xhtml" />
            </rule>
            .... 
         </navigation>
      </page>
      



      I have built application where I have integrated this 2 components
      components.xml:


      <navigation:pages>
         <navigation:resources>
            <value>/WEB-INF/conf/pages-config-um.xml</value>
            <value>/WEB-INF/conf/pages-config-doc.xml</value>            
         </navigation:resources>
      </navigation:pages>
      



      Seam overrides pages with save view-id (

      view-id="*"

      ). Is it possible to merge this navigation rules to one without rewriting pages.xml?