Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in using selectonemenu inside datatable - please help

 
castro mcwin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use datatable to display a set of values. I have a selectonemenu inside it. The display is fine. But after changing the menu value and clicking submit , the new value is not getting updated. Instead only the old value is passed

JSP:



handler:


please help

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18166
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added Code tags to make your code more readable. There's a button on the message editor for that. One thing that would also help would be if you could reduce your sample to just its more essential lines. I have a hard enough time following multiple screens of text when I'm being paid for it.

You might want to put a "<h:messages/>" tag on your page. JSF will not update backing bean if ANY control value on the submitted form is invalid, but this tag will display the error message(s). Also, you don't seem to have a Submit button (commandButton or commandLink). To get the control value to update, you must have a Submit control and the Submit control must be in the same JSF form as the control(s) that you want to update the backing bean(s) from.
 
castro mcwin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. Sorry this is the first time for me. I will reduce my code next time.

The point you made resolved the problem. I added a submit the same JSF form which updates the backing bean.

Thanks again for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic