File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Map within a Map in JSF-EL ?" Watch "Map within a Map in JSF-EL ?" New topic
Author

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:

value="#{myBean.myMap[x.[y]]}"

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
Greenhorn

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
value="#{myBean.myMap[x]}.



Thanks and Regards,
RamaKrishna.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map within a Map in JSF-EL ?
 
Similar Threads
IllegalArgumentException: more than 10 parameters
obtain the key of a map
Enum as a key in a Map in JSF
jaxb hashmap?
Can I have a list in tree map?