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

selectOneMenu and value in the backing Bean in JSF

 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the following code in my JSP:


and in my backing bean


but the roleID property allways have the default value: the String "null" in this case.

The only way that I have been able to change its value is through the valueChange listener in the jsp:

Is there any way to set the value of the property without the listener?
[ November 03, 2004: Message edited by: Mary White ]
 
Bruno Collet
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a binding value. You have to write #{admin.roleId}.
 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bruno!
Thanks for looking into my problem.
A second set of eyes is always helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic