2 Replies Latest reply on Aug 14, 2009 5:53 PM by ajanz

    action in pages.xml

    ajanz
      i have some trouble executing a method when page is accessed.

      if i use this in pages.xml

            <page view-id="/*"  login-required="true" >
          <action execute="#{Page.autologin}"  />
              <navigation>
                  <rule if-outcome="logout">
                      <redirect view-id="/login.xhtml"/>
                  </rule>
              </navigation>
            
            
         
          </page>

      the function is called...but for all pages

      if i use

            <page view-id="/home.xhtml"  login-required="true" >
          <action execute="#{Page.autologin}"  />
              <navigation>
                  <rule if-outcome="logout">
                      <redirect view-id="/login.xhtml"/>
                  </rule>
              </navigation>
            
            
         
          </page>


      the function is not called. why?