This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes h:selectOneMenu and Map bindings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:selectOneMenu and Map bindings" Watch "h:selectOneMenu and Map bindings" New topic

h:selectOneMenu and Map bindings

Matt Fury

Joined: Mar 04, 2002
Posts: 23
I am currently having an issue with a Map binding to selectOneMenu tag. Does anyone know if this is readOnly? It appears to be.

I am trying to set the value to something like: #{modelBean.pocket['11']} where 11 is the string key to a Map. I don't get an exception but it does not appear to bind the values at all. This is for the selectOneMenu tag. The selectItems tag has a different Map that populates the list box initially.

-------<br />Sun Certified Java 2 Programmer<br /><a href="" target="_blank" rel="nofollow"></a><br />
Jolie Lee
Ranch Hand

Joined: May 08, 2005
Posts: 87
i have a selectmanylistbox and i use the same way to get the data from my backing bean and to display out. it seems to be working fine.

maybe you double check the backing bean?

Jys<br /><a href="" target="_blank" rel="nofollow"></a><br /> <br />Trying my very best to learn java, please forgive me if i'm asking some really stupid questions.
I agree. Here's the link:
subject: h:selectOneMenu and Map bindings
Similar Threads
Auto Refresh using selectOneMenu tag
SelectOneMenu - Validation Error: Value is not valid
Problems using h:selectOneMenu
List box initialization through managed bean
How to set Default selection in h:selectOneMenu