开发者

Canceling form edition but not triggering form validators

开发者 https://www.devze.com 2023-03-03 17:07 出处:网络
is it possible to cancel a form, redirecti开发者_开发问答ng to the previous page, and preventing the form validators to be triggered?Yes,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消