users@javaserverfaces.java.net

Re: JSF1.2: Why does a method to handle an Action Event start in the PhaseId.INVOKE_APPLICATION phase?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 11 Sep 2007 13:11:10 -0700

Todd Patrick wrote:
> Sun's JavaServer Faces implementation (1.2_04-b10-p01)
> Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01)
>
>
> Why does an actionListener start in the PhaseId.INVOKE_APPLICATION phase?
>
> When I place a breakpoint in my method bounded to the components
> binding attribute, I check the PhaseId and it's always in
> INVOKE_APPLICATION phase.
>
> I'm *guessing* a PostBack has occurred and this phase is where JSF
> handles any application-level events?
Correct.

If the request is non-postback the only phases that are called are
RESTORE_VIEW and RENDER_RESPONSE.

>
> Thanks,
>
> --Todd
>
>
>
> NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged information.
> Any unauthorized use, disclosure or distribution is prohibited. If you
> are not the intended recipient, please contact the sender by reply
> email and destroy all copies of the original message.