2 Replies Latest reply on Jun 25, 2009 10:07 AM by Dolphin Here

    Help

    Dolphin Here Newbie
      Is there a way to call a function from a xhtml before the file is loaded?


      i have function which would populate few fields in an xhtml file. need to call this function before the screen is loaded.


      Note: the xhtml file is a result of a redirect from pages.xml file.

      Pages.xml

           <page  view-id="/home.xhtml">
                <navigation>
                     <rule if="#{identity.hasRole('ABC')}">
                      <redirect view-id="/xyz.xhtml"/>
                  </rule>


      this file xyz.xhtml has to prepopulate few fileds before it is loaded..

      is this possible?


      Lakshmi