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


    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.


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

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

      is this possible?