wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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="http://www.lfhsolutions.com" target="_blank" rel="nofollow">http://www.lfhsolutions.com</a><br />matt@lfhsolutions.com
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="http://jy-s.com" target="_blank" rel="nofollow">http://jy-s.com</a><br /> <br />Trying my very best to learn java, please forgive me if i'm asking some really stupid questions.
Don't get me started about those stupid light bulbs.
subject: h:selectOneMenu and Map bindings