Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling Multiple form controls with same name

 
Mohamed Jailani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Could any one help me to code a Page which is having multiple controls elements like Text box,List box in which the all control to have the same name suppose I have a field called as answers ,for this In form bean i have defined the field as String[]
I am not able to load the page
gibing no getter method for property answers in form bean
Kindly could any one help me to over come this
Regards
Jailani
 
Masha Klimenko
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not much information but here is what could be happening:
your naming has to adgere to java bean conventions, so make sure that on
the page the name is spelled beginning with lower case: answers, and in the
bean you have methods getAnswers() and setAnswers(...); also if you have nested properties make sure that you are in the right place in the hierarchy.
Hope this helps
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic