aspose file tools*
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
Author

h:selectOneMenu and Map bindings

Matt Fury
Greenhorn

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:selectOneMenu and Map bindings
 
Similar Threads
SelectOneMenu - Validation Error: Value is not valid
List box initialization through managed bean
Problems using h:selectOneMenu
Auto Refresh using selectOneMenu tag
How to set Default selection in h:selectOneMenu