struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Amadei" <daniel.cicero.ama...@gmail.com>
Subject Re: binding select value to a Java 5 enum
Date Thu, 08 Feb 2007 02:33:28 GMT
Hi All,

Per my message above I was able to set value for an Enum which is a
property of my action using a converter as in the showcase example,
but I was not able to set the enum to a nested, when the enum never
gets called.

My structure is similar to:

person.gender (where gender is an enum)

My conversion file is like this:

person.gender=mypackage.EnumConverter
Element_person.gender=mypackage.Gender

This way, the property person.gender is always null. Can somebody help me?

Thanks,
Daniel
2007/2/7, Daniel Amadei <daniel.cicero.amadei@gmail.com>:
> Hi All,
>
> I`m trying to bind the value of a select to an enum but I`m getting
> the following error:
>
> Invalid field value for field
>
> Does anybody knows how can I set the value to be the enum type?
>
> Thanks,
> Daniel
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message