• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map within a Map in JSF-EL ?

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic