File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!