0 Replies Latest reply on Aug 4, 2011 4:04 PM by Jonathon Freeman

    selectManyCheckbox labels different than values

    Jonathon Freeman Newbie

      It's a breeze to back a h:selectManyCheckbox with a List of values like so:

      <s:selectItems var="_type" value="#{validTypes}" label="#{_type}"/>

      But that makes the label of each checkbox the same as its value. Is it possible to back it with, say a Map, and have labels that are different than the values. What I want is basically a set of checkboxes with labels corresponding to values such as:

      NI : Name Insured

      SP : Spouse

      FM : Family

      Where the two letter code is the value that gets submitted.