Hi,
I currently have a simple jsp page in which I want to render some
attributes based on a condition.
My condition is fairly simple: <attribute... rendered="#{a.id ==
bean.currentId}"/>
Now, in this code, 'a' represents a static variable (of the same type
than the class) in a class that implements serializable but it not a
bean itself. It's a class that extends enum and is packaged in my
application.
So it's not declared in faces-config anywhere. And I just can't get it
to work. I've tried things such as : rendered="#{org.test.enum.MyEnum.id
== bean.currentId}" but it's not working. I've tried also by importing
the class on top of the page first.
And I've tried to use a <c:if> in JSTL but it seems that I just can't
load this class, even though I don't get any error messages.
Any help would be appreciated.
Regards,
Greg