1 Reply Latest reply on Oct 3, 2007 6:39 PM by pmuir

    Enum in my xhtml

    diegocoronel

      how can i use something like this:

      <h:comand....
      rendered="#{myBean.isStatus(MyEnumerator.MyStatus)}"
      </h:command...>

      i need to use enumerator in my method.

      Anyone know ?

        • 1. Re: Enum in my xhtml
          pmuir

          You could do it through an el function e.g.

          #{myBean.isStatus(my:enum('com.my.MyEnumerator.MyStatus')}"


          enum(String enum) {
           // Split out the type from the value
           // use Enum.valueOf(type, value) to get the enum
          }