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

    action in pages.xml

    Sascha Janz Master
      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?