Meaningless Drivel is fun!*
The moose likes Struts and the fly likes selectOneMenu and value in the backing Bean  in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "selectOneMenu and value in the backing Bean  in JSF" Watch "selectOneMenu and value in the backing Bean  in JSF" New topic
Author

selectOneMenu and value in the backing Bean in JSF

Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
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

Joined: Jun 08, 2004
Posts: 40
Its a binding value. You have to write #{admin.roleId}.


Bruno Collet<br /><a href="http://www.practicalsoftwarearchitect.com" target="_blank" rel="nofollow">www.practicalsoftwarearchitect.com</a><br />- The Paradox of Software Architecture: It is easy to make a complex architecture, but it is difficult to make a simple architecture.
Mary White
Ranch Hand

Joined: Jan 27, 2003
Posts: 41
Hi Bruno!
Thanks for looking into my problem.
A second set of eyes is always helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectOneMenu and value in the backing Bean in JSF