2 Replies Latest reply on May 11, 2008 1:54 PM by pmuir

    SELECT with convertEnum

    braddm7

      Hello, guys, I am using Seam 2.0.0.GA. There is a small issue I came upon. Here is the Facelet:


      <h:selectOneMenu value="#{someEnum}">
         <s:selectItems value="#{enumCollection}" var="enumVar" label="#{msg[enumVar.label]}" />
         <s:convertEnum />
      </h:selectOneMenu>




      and the backing bean:


      @Factory(scope = APPLICATION)
      public SomeEnum[] getEnumCollection() {
         return SomeEnum.values();
      }



      When the page is loaded the SELECT is OK. The issue is observed when I re-render the page after an ajax request. The generated SELECT box is empty. When I replace

      label="#{msg[enumVar.label]}"

        with
      label="#{enumVar.label}"

      it works fine, the difference is that I do not load the messages from the property file.