4 Replies Latest reply: May 10, 2012 7:15 AM by attilas79 RSS

    question on "How-to invoke a method once upon application start"

      Hello everyone.

      I'm trying to implement what the article "How-to invoke a method once upon application start" by Frank suggests.

      Suppose that I'm having a single point of entry, so in my login.jpsx I have the below:
      <f:view beforePhase="#{login.onBeforePhase}">
      In the method "onBeforePhase" I have to pass the phaseEvent, since the signature is the following:
      public void onBeforePhase(PhaseEvent phaseEvent)
      but how do I know the phaseEvent when calling the login.onBeforePhase? How the call should be?

      Thanks a lot!

      ps. I'm using jDev