Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Iterate through Map keys using JSF?

843842Jul 5 2005
I have a POJO with a property of type Map. Is there a way to iterate through the map entries and display them using JSF? E.g.

key1 = value1
key2 = value2
...

The docs indicate that h:dataTable can't iterate over Maps, and I can't figure anyway to get it to iterate over map.keySet(), since it's not called "getKeySet()".

I can do this using JSTL and c:forEach, but I've heard that can cause other problems with postback.

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2005
Added on Jul 5 2005
0 comments
254 views