I've added the ZIPs for both of these to More About Struts, where they
will be easier to find.
http://husted.com/about/struts/resources.htm#new
If we can combine the projects, and change Bean-Util once, that would
probably be better.
Bean-Util is core class now, and so everything should be thoroughly
tested before calling for a vote.
Anyone can vote and call for a vote at Apache, but only the votes of the
committers count toward whether the vote passes.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Gregor Rayman wrote:
>
> "Jan Sorensen" <[EMAIL PROTECTED]> 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