Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Group Validations inside data table  RSS feed

vaithee sub
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I perform Group Validations in h:datatable using custom Validators
For instance lets say I have a data table containing one column containing values of States (NY,NJ...).
In my custom Validator, I want to ensure that the state code does not repeat in any of the rows.

In the validator how do I get the ids for all the state codes to find the value in each of the component?

<h:dataTable id="tableEx1" value="#{careerDisplayBean.stateBarAdmissions}"
<h:inputText value="varstateBarAdmissions.stateCode" id="cd">
<h:validator validatorID="stateCodeValidator"/>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!