• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Group Validations inside data table

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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}"
var="varstateBarAdmissions">
<h:column>
<h:inputText value="varstateBarAdmissions.stateCode" id="cd">
<h:validator validatorID="stateCodeValidator"/>
</h:inputText
</h:column
</h:dataTable
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic