Hi,

I'm using something like this:

<s:radio name="employee.employeeType" key="label.employee.type"
list="employeeTypes" listKey="shortcut"
                     listValue="name()" required="true"/>

in action I have

    public EmployeeType[] getEmployeeTypes() {
        return EmployeeType.values();
    }

and the enum

public enum EmployeeType
{
    DIRECT("D"),
    INDIRECT("I"),
    OFFICE("O");

    private String shortcut;

    EmployeeType(String shortcut) {
        this.shortcut = shortcut;
    }

    public String getShortcut() {
        return shortcut;
    }

    public String toString() {
        return "EmployeeType{" +
                "shortcut='" + shortcut + '\'' +
                '}';
    }
}


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to