2 Replies Latest reply on May 15, 2008 4:49 PM by dschauder

    EL in master page.xml view-id

    shouvikrb

          I have the following in the main pages.xml and the view-id for page does not seem to get resolved. The redirect view-id, however, works as desired. I looked in the source code and it seems like navigation/Pages.java is doing a createValueExpression() for the redirect view-id but not for the page view-id. But then again, I may be looking at a wrong place completely.


      <page view-id="#{myroot}/something/home.xhtml">   
      
         <navigation>
      
           <rule if-outcome="createObj">
      
             <redirect view-id="#{myRoot}/other/core.xhtml" />
      
           </rule>
      
         </navigation>
      
       </page>
      
      



      Am I trying to do something bad?

        • 1. Re: EL in master page.xml view-id
          pmuir

          Yes, this isn't supported. You would need to file a FR in JIRA for this to be supported.

          • 2. Re: EL in master page.xml view-id
            dschauder

            Is there any way to break up the master pages.xml file into multiple files at a sub-directory level?  I know that you can create a pages.xml for each file, but when you have common navigation rules that are only specific to a single section of a web application, it results in a lot of duplication or overcomplication.