开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜