File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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,
I agree. Here's the link:
subject: Map within a Map in JSF-EL ?
It's not a secret anymore!