0 Replies Latest reply on Oct 26, 2009 3:05 PM by Sachin Parnami

    peculier problem while iterating SET with enum value

    Sachin Parnami Newbie

      Hi All,


      I have doubt regarding using set value with enum data in it.


      for say i have set with id, enum fieldstypes.


      now when i try to iterate set with mentioned code





      <ui:repeat value="#{selectedData.field.toArray()}" var="mapEntry">
                              <h:outputText value="#{mapEntry.fieldstypes}" /><br/>
      </ui:repeat>




      I get an error saying fieldstypes not found where as it exists and if i check to print id instead of fieldstypes all works fine it iterates all available rows.
      -------------------------------------------------------------------------
      what could be the possible way to put if condition in xhtml page?


      for say if my fieldType is Animal then i want to print link a and if my fieldstypes is Vehicle the i want to print link b?


      Please guide