When the user invokes a command, even an async command, (and the command is not set to immediate) the entire form containing the command is processed using the standard JSF lifecycle. One phase of that lifecycle is the ProcessValidations phase, which validates the form. If any fields fail validations, the processing is aborted.
If the command is set to immediate, the ProcessValidations, UpdateModelValues, and InvokeApplication phases of the JSF lifecycle are skipped, and the command’s action is invoked immediately (at the end of the ApplyRequestValues phase). This means that none of the form’s fields are updated (which occurs during the UpdateModelValues phase).
This is the behavior defined by the JSF spec. For more information about the JSF lifecycle, see the Java EE Tutorial at “http://java.sun.com/javaee/5/docs/tutorial/doc/bnaqq.html”, or the CAF and JSF article on the CAF SDK at “http://www.ajax-softwareag.com/articles/TADV3A/CAF-and-JSF/JSF_Life_Cycle.html”.
Justin
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS