Philip Puthenvila
Philip Puthenvila

Reputation: 512

Need to avoid validation on not displayed fields under a panelgroup

I have two panel group and only one panel is displayed at any time using JQuery. There are multiple fields under each panel group which have required="true" attribute. My question is how to avoid validation on not displayed fields. Currently all the not displayed fields are get validated and the navigation get stopped. Any suggestions are welcome.

Upvotes: 0

Views: 64

Answers (1)

Mohankumar Rathinam
Mohankumar Rathinam

Reputation: 633

If you are using the flag for hidden panelGroup then use the same flag variables in the place of hidden panel fileds. For Example : Use this

required="#{managedBean.hiddenPanelGroupFlag}"

instead of

required="true"

in you hidden panel.

Upvotes: 2

Related Questions