• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in using selectonemenu inside datatable - please help

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic