How to prevent PrimeFaces wizard' next button activate client validations?

后端 未结 3 629
星月不相逢
星月不相逢 2021-01-23 07:54

I have in my JSF 2.2 + PrimeFaces application a wizard with three tabs. In each tab, I have a form to capture data from the user. Each of this form have some validations. Right

3条回答
  •  长情又很酷
    2021-01-23 08:01

    So if someone will have validation problem similar to this there are two cases:

    1. If you use JSF validation like PrimeFaces required attribute or normal tags like you can do required = "#{!request.getParameter('validate')}" and like OP or
    2. If you use JSR Bean validation like @NotNull you can do

    to disable validation with to an action button.

提交回复
热议问题