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

后端 未结 3 630
星月不相逢
星月不相逢 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:15

    You have nested forms. Every in a tab is inside other outside . You don't need separate forms, just the one outside wizard.

    EDIT:

    There is some workaround for this which works for me (don't validate field after clicking NEXT, but validates after clicking my button to validate).

    For the fields you don't want to validate on NEXT add this tag (for example for )

    and to your button add this tag .

提交回复
热议问题