Hi, Thanks,my getComboBox accepting ComboBoxType, and I use @package.path.comboboxt...@sex is working fine now.
Regards LV ________________________________ From: Steven Yang <kenshin...@gmail.com> To: Struts Users Mailing List <user@struts.apache.org> Sent: Wed, December 23, 2009 1:26:48 AM Subject: Re: [S2] <s:select> can't use ENUM type what does "getComboBox" accepting? an Enum value or Enum array? if an Enum value then you have to do @{include full package path}comboboxt...@sex On Wed, Dec 23, 2009 at 12:15 AM, <mailtolouis2020-str...@yahoo.com> wrote: > Hi, > > I got problem to using ENUM type in <s:select>, here is my code: > > <s:select label="Sex" > name="user.sex" > list="getComboBox(ComboBoxType.SEX)" > listKey="key" > listValue="value" > value="user.sex"/> > > but if I change to use String (e.g: list="getComboBox('SEX')"), > and do the conversion in the action then it working fine. > > Is it a bug? > > Regards > LV