[jboss-user] [JBoss Seam] - Accessing Enum with EL

menashe do-not-reply at jboss.com
Thu Jan 3 17:00:51 EST 2008


How do i access Enum from EL
here is enum
package mypackage;
  | public enum Status {GOOD, BAD}
here the object
package mypackage;
  | @Name("user")
  | public class User {
  | 	private Status status;
  | 
  | 	public Status getStatus()
  | 		{return status;}
  | 
  | 	public void setStatus(Status status)
  | 		{this.status=status;}
and here is broken EL
<h:outputText value="all is good" rendered=#{user.status == Status.GOOD}"/>
anyone has an idea how to get it to work?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116878#4116878

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116878



More information about the jboss-user mailing list