You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "H. Swaczinna" <sw...@wlp-systems.de> on 2007/02/02 15:23:40 UTC

[Tobago] PhaseListeners not invoked with ajax request

Hi,

when a server request is invoked by ajax not all registered
phaseListeners are invoked. Only in phases RESTORE_VIEW and
APPLY_REQUEST_VALUES the listeners are invoked. Even when an action 
is executed, there's no invocation of INVOKE_APPLICATION listeners.

In general, is the lifecycle in ajax request the same as in normal
JSF requests? Or is this something completely different?

Regards
Helmut

Re: [Tobago] PhaseListeners not invoked with ajax request

Posted by Volker Weber <v....@inexso.de>.
Hi Helmut,

currently it is not the same, ajaxRequest are interupted by the
AjaxPhaseListener after ApplyRequestValue Phase. The rest of the
lifecircle is done here, because
phases should only invoke on affected components.

But i'm thinking about a own Lifecircle implementation for tobago to
make the PhaseListener obsolete, so this may change in the future.

Regards,
  Volker


2007/2/2, H. Swaczinna <sw...@wlp-systems.de>:
> Hi,
>
> when a server request is invoked by ajax not all registered
> phaseListeners are invoked. Only in phases RESTORE_VIEW and
> APPLY_REQUEST_VALUES the listeners are invoked. Even when an action
> is executed, there's no invocation of INVOKE_APPLICATION listeners.
>
> In general, is the lifecycle in ajax request the same as in normal
> JSF requests? Or is this something completely different?
>
> Regards
> Helmut
>

Re: [Tobago] PhaseListeners not invoked with ajax request

Posted by Cagatay Civici <ca...@gmail.com>.
Hi,

It's supposed to be same. One of the registered phaselisteners are probably
calling ResponseComplete or RenderResponse. For example
AjaxDecodePhaseListener in sandbox calls responseComplete so other phases
are not executed.

Cagatay

On 2/2/07, H. Swaczinna <sw...@wlp-systems.de> wrote:
>
> Hi,
>
> when a server request is invoked by ajax not all registered
> phaseListeners are invoked. Only in phases RESTORE_VIEW and
> APPLY_REQUEST_VALUES the listeners are invoked. Even when an action
> is executed, there's no invocation of INVOKE_APPLICATION listeners.
>
> In general, is the lifecycle in ajax request the same as in normal
> JSF requests? Or is this something completely different?
>
> Regards
> Helmut
>