jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: [jsr372-experts mirror] UICommand#decode() ordering of client behavior events and action event not consistent in Mojarra and MyFaces

From: Kito Mann <kito.mann_at_virtua.com>
Date: Fri, 6 Mar 2015 12:00:32 -0500

+1

Bauke, are you sure MyFaces does it the other way around? I think I wrote
code that expected to execute the action listener first.

On Friday, March 6, 2015, Cagatay Civici <cagatay.civici_at_gmail.com> wrote:

> I also expect listeners getting invoked before action.
>
> Cagatay Civici
> PrimeFaces Lead
> PrimeTek Informatics
> www.primefaces.org
>
> On Friday 6 March 2015 at 18:46, Bauke Scholtz wrote:
>
> Indeed, exactly as how actionListener/action work right now.
>
> Cheers, B
>
> On Fri, Mar 6, 2015 at 5:11 PM, arjan tijms <arjan.tijms_at_gmail.com
> <javascript:_e(%7B%7D,'cvml','arjan.tijms_at_gmail.com');>> wrote:
>
> Hi,
>
> I'd say the general expectation is that listeners are always invoked
> first, and the action is the final thing called.
>
> Kind regards,
> Arjan
>
>
>
> On Fri, Mar 6, 2015 at 4:29 PM, Bauke Scholtz <balusc_at_gmail.com
> <javascript:_e(%7B%7D,'cvml','balusc_at_gmail.com');>> wrote:
> > Hi,
> >
> > Trigger:
> > http://stackoverflow.com/q/28901284
> >
> > Code:
> > <h:commandLink action="#{bean.action}">
> > <f:ajax listener="#{bean.listener}" />
> > </h:commandLink>
> >
> > Mojarra:
> > Listener is first invoked and then action.
> >
> > MyFaces:
> > Action is first invoked and then listener.
> >
> > Who's correct? I couldn't find this in the spec. We need to align out
> it. As
> > the action is supposed to be definitive (because of the navigation case
> > outcome), I find Mojarra behavior is correct.
> >
> > Cheers, B
>
>
>
>

-- 
___
Kito D. Mann | @kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com | @jsfcentral
+1 203-998-0403
* Listen to the Enterprise Java Newscast: *http://
<http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
<http://ww.enterprisejavanews.com>*
* JSFCentral Interviews Podcast:
http://www.jsfcentral.com/resources/jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17