This content has been marked as final.
Show 1 reply
-
1. Re: Using Enums with HashMaps and xhtml access
gus888 Sep 9, 2009 5:20 PM (in response to seamuser111)You need to create a getter method in a bean:
@name("enums")
public class Enums() {
public MyType getONE() {
return MyType.ONE;
}
public MyType getTWO() {
return MyType.TWO;
}
}
on xhtml
#{obj.test[enums.ONE]}
Have a good one!