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

    selectItems internationalised label

    Patrick Refondini Newbie

      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:

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

      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