Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

table display problem  RSS feed

 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, My new to JSF, I have a following problem
On my form have a drop down box with few values. When I post the form I store value of droop down items in DB. While retrieveing I want to display the label of drop down and the actual value. for eg.
A drop down have elements Daily and Weekly with corresponding values 1 and 7.
I want to display Daily in case of 1 in table and so on..

Please help. Thank you
 
deepak londhe
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you basically use selectonemenu it contains attributes like value and label
value is used for to store actual value and label is used for to display the actual value.
please send your code also
thank you bye bye.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!