Get your CodeRanch badge!*
The moose likes JSF and the fly likes Map within a Map in JSF-EL ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Map within a Map in JSF-EL ?" Watch "Map within a Map in JSF-EL ?" New topic

Map within a Map in JSF-EL ?

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I have a Map in my BackingBean:

Now, want to use it in EL in JSF:

I tried it with:


but it does not work...parser Error.

I know, when I have this as Map:

then this works:

but I need to reference a map within a map. How can I express it in JSF-EL???
nagaraju RamaKrishna

Joined: Apr 21, 2011
Posts: 2

Am using the HashMap<Date,Integer> like you in java class and value="#{myBean.myMap[x]}" in jsp but am not able to get more values(morethan 10) from jsp.

In java class i used myMap.get(days.get(i))) . Here days is List<Date>

Am able to get 6 values if days size is 6. But more than that am not able to get the values from hashmap.

Can anyone please explain me about why this is happening.? How can i get all the values in map which are entered in

Thanks and Regards,
wood burning stoves
subject: Map within a Map in JSF-EL ?
Similar Threads
Can I have a list in tree map?
Enum as a key in a Map in JSF
jaxb hashmap?
obtain the key of a map
IllegalArgumentException: more than 10 parameters