2 Replies Latest reply on Jun 10, 2007 8:19 PM by refon

    selectItems internationalised label

    refon

      In the context of i18n, I would like to use a message key to obtain selectItems label.

      In the following code I'd like to get the corresponding message to priority.labelKey key from locale bundle:

      <h:selectOneMenu
       value="#{task.priority}">
       <s:selectItems value="#{priorities}" var="priority" label="#{priority.labelKey}" noSelectionLabel="Please select" />
       <s:convertEnum />
      </h:selectOneMenu>
      


      I cannot find out a working pattern for this.
      For instance I naively tried label="#{message[priority.labelKey]}" ...

      TIA for any pointers to a solution