Menu

#33 Can uitag:source be used with a Java5 enum type?

open
nobody
5
2007-07-26
2007-07-26
Anonymous
No

For example, suppose I have the following enum:

public enum Animals {
DOG,
CAT,
COW
}

I can get the entire set by doing something like this:

EnumSet e = EnumSet.allOf(Animals.class);

But there doesn't seem to be any way to display this collection in a uitags:source because it's not a map, and doesn't have any "bean" properties that can be accessed as the value or name.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB