Canceling form edition but not triggering form validators
is it possible to cancel a form, redirecti开发者_开发问答ng to the previous page, and preventing the form validators to be triggered?
Yes,
You have to use immediate
attribute of the commandButton
.
Quote:
The immediate attribute is a boolean flag indicating that component events should be sent to registered event listeners immediately rather than after the validation phase of the JSF request processing lifecycle. The immediate flag allows you bypass JSF validation for a particular component.
精彩评论