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

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

From: Bauke Scholtz <balusc_at_gmail.com>
Date: Fri, 6 Mar 2015 16:29:19 +0100

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