• Post Reply Bookmark Topic Watch Topic
  • New Topic

Primfaces: Data lost in inputTextfield on dropdown value change  RSS feed

 
Alok Agrawal
Greenhorn
Posts: 14
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a table which has inputtextfields and a dropdown. I need to save the values stored in input fields when the value of dropdown changes.


but when I reach to bean method save, it does not show the values of inputtext field. I have checked the mapping of textfields. If I set the values of textfields from bean and then call event of dropdown then in save method I got the values.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your selectOneMenu control does not appear to have a "value" attribute.

How is JSF supposed to know what property to get/set the control's selected value from?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!