This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes jsf datatable validation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "jsf datatable validation " Watch "jsf datatable validation " New topic
Author

jsf datatable validation

vivek ja
Ranch Hand

Joined: Feb 24, 2005
Posts: 80
I have a datatable which contains rows of textboxes. I want to validate each of these input fields.
I get a nullpointer exception on UIComponent.findComponent.
This is how I access the value
uiComponent.findComponent("selectForm:invoice:0:amount")
uiComponent.findComponent("selectForm:invoice:0:name")
etc.,

where each row corresponds to an Invoice bean that has getters and setters

I am not sure if this is the right way to access the field.
vivek ja
Ranch Hand

Joined: Feb 24, 2005
Posts: 80
I submitted the above before completing the message. Sorry!
I am not sure how to access indexed fields
Can someone please help me out with this?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jsf datatable validation
 
Similar Threads
problem with c:forEach and links
selectmanycheckbox with selectitem
How to access the current row index in dataTable
Problem with selecting checkboxes in subTable
How to make datatable header bold?