prefer taking that enum value as string and use the same
On 12/13/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
You'd need to either register a converter with BeanUtils that knows how
to convert the enum type to String, or just do this:
PropertyUtils.setProperty(context.getForm(), "status",
You'd need to either register a converter with BeanUtils that knows how
to convert the enum type to String, or just do this:
PropertyUtils.setProperty(context.getForm(), "status",
Status.ACTIVE.toString());
L.
Deepa Umakanth wrote:
Error:
Caused by: org.apache.commons.beanutils.Conversi
Hi kranti,
I have just imported the Status class and use it directly in the
setProperty() as Status.ACTIVE
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 9:31 AM
To: Struts Users Mailing List
Subject: Re: conversionexception
can u plz
blic enum Status {
ACTIVE, INACTIVE, TESTING, PUBLISHED
}
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 9:21 AM
To: Struts Users Mailing List
Subject: Re: conversionexception
Dear Deepa,
you should use that enum object as a collect
PROTECTED]
Sent: Tuesday, December 12, 2006 9:21 AM
To: Struts Users Mailing List
Subject: Re: conversionexception
Dear Deepa,
you should use that enum object as a collection.
if you want to display all the contents of the enum use logic:iterate
and in
type attribute mention the object type
O
Dear Deepa,
you should use that enum object as a collection.
if you want to display all the contents of the enum use logic:iterate and in
type attribute mention the object type
On 12/12/06, Deepa Umakanth <[EMAIL PROTECTED]> wrote:
I am facing an error with PropertyUtils.getProperty(),
Which
Error:
Caused by: org.apache.commons.beanutils.ConversionException: Cannot
assign value of type 'com.kryterion.wa.util.enums.Status' to property
'status' of type 'java.lang.String'
PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE);
-Original Message-
From: Deepa Umaka
7 matches
Mail list logo