Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf datatable validation  RSS feed

 
vivek ja
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!