4 Replies Latest reply: May 10, 2012 7:11 AM by Sudipto Desmukh RSS

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

    attilas79
      Hello everyone.

      I'm trying to implement what the article "How-to invoke a method once upon application start" by Frank suggests.
      https://blogs.oracle.com/jdevotnharvest/entry/how_to_invoke_a_method


      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 11.1.2.1.0