struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Rayman" <gray...@gmx.net>
Subject Re: ActionForms With Dynamic Properties
Date Fri, 17 Aug 2001 16:30:18 GMT
"Jan Sorensen" <jan.sorensen@aragost.com> wrote:


> I downloaded the lastest build of Struts to make my changes to the files
> there. I have only changes the classes BeanUtils and PropertyUtils, which
I
> then realized have been move to the commons project, the reason I also
send
> this mail to the commons mailing list.
>
> In addition to the changes, I have also created two new classes which I
have
> moved to the org.apache.commons.beanutils package.
>
> In the attached file there is the two changed classes, and the two new
> classes, plus a small demo struts app with three jsp's and a single action
> form (of course with dynamic properties).
>
> I have create an interface beans with dynamic properties must implement,
> there is one method that returns a DynamicPropertyDescriptor (subclass of
> PropertyDescriptor) given a property name (null if the name isn't a
dynamic
> property).
>
> In PropertyUtils I changed the getSimpleProperty and setSimpleProperty
check
> if the property is dynamic and then call getDynamicProperty or
> setDynamicProperty.
>
> In BeanUtils i have changed the getPropertyDescriptor to return
> DynamicPropertyDescriptor in case of a dynamic property.
>
> With these changes is Struts works fine with dynamic properties. I have
not
> tested with indexed and nested properties, but believe I would work.
>
> Regards,
> Jan Sorensen
> aragost

I'd like to cooperate with you on improving the bean utils package. I've
recently
changed it to support string keyed properties implemented by Fracois Rey.

Unfortunately, there have been minimal response on the struts mailing list
and
no response at all in the commons mailing list.

--
gR





Mime
View raw message