You'll need to define a "keys" property on your object. Since there's no "getKeys()" method in the standard Java.util.Map collection, that means you'll need to subclass it with a class of your own that includes getKeys(). Your getKeys() method would need to invoke the Map keySet() method and present the resulting java.util.Set according to how you want it rendered on the page. Usually, you'd want to sort it, since a Set is an unordered collection.

Customer surveys are for companies who didn't pay proper attention to begin with.

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580

posted Oct 14, 2008 08:00:00

0

hmm.. I tried it with that, and it works (without implementing a getKey-Property)

To get the values, you can use:

I know, I should avoid using JSTL, but c:forEach works always, where ui:repeat does not work always.