1 Reply Latest reply on Dec 6, 2007 6:15 PM by Pete Muir

    trying to use <s:selectItems... with Enum

    Joe Greene Novice

      Hi -
      I've got an enum that I want to create a drop-down for, and use the ordinal values for the "value" attribute in the <option... tags.

      But the selectItems component only has "label" attribute, and so I can't figure out how to tell the selectItems to use the enum's ordinal values for the option "value". The enum's name is used as the option "value". Do I need to create some kind of converter to do this, or what am I doing wrong?

      Thanks for your help.

      - Joe