struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mailtolouis2020-str...@yahoo.com
Subject Re: [S2] <s:select> can't use ENUM type
Date Wed, 23 Dec 2009 15:34:03 GMT
Hi,

Thanks,my getComboBox accepting ComboBoxType, and I use @package.path.ComboBoxType@SEX is
working fine now.

Regards
LV



________________________________
From: Steven Yang <kenshin520@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}ComboBoxType@SEX

On Wed, Dec 23, 2009 at 12:15 AM, <mailtolouis2020-struts@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message