You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Henry Saputra <he...@oracle.com> on 2008/10/09 00:29:45 UTC
Setting phase id to APPLY_REQUEST_VALUES in UIXCommand.queuEvent
when immediate attribute is set to true?
Hi All,
I saw from the Trinidad 1.2.8.1 branch UIXCommand.queueEvent the code
looks like this:
/**
* <p>Intercept <code>queueEvent</code> and mark the phaseId for the
* event to be <code>PhaseId.APPLY_REQUEST_VALUES</code> if the
* <code>immediate</code> flag is true,
* <code>PhaseId.INVOKE_APPLICATION</code> otherwise.</p>
*/
@Override
public void queueEvent(FacesEvent e)
{
if (this == e.getComponent() && ((e instanceof ActionEvent) || (e
instanceof ReturnEvent)))
{
if (isImmediate())
{
e.setPhaseId(PhaseId.ANY_PHASE);
}
else
{
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
}
super.queueEvent(e);
}
Based on JSF spec shouldnt be that for isImmediate() equals to true, the
phaseId be set to APPLY_REQUEST_VALUES rather than ANY_PHASE?
Thanks,
Henry