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

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

    I finally figured out a way of doing it thanks to @Geinmachi and @BaulusC post here

    So this is the updated code:

    
    
    
    
    

    Agregue un Afiliado

    Take a look at all of my fields. They all have this:

    required="#{request.getParameter('validate')}"
    

    If you take a look at my button, it has:

    
    

    This way, when I click on the NEXT button on my wizard, it WON'T activate the validations. The validations will ONLY activate when I click the button on that particular form!

    I hope this helps someone some day.

提交回复
热议问题