I recently donated the LazyDynaBean and LazyDynaClass that I developed to
the BeanUtils project and these have recently been released in the BeanUtils
1.7.0 release.


* Documentation:
http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/package-summary.html#dynamic.lazy

* Commons BeanUtils:  http://jakarta.apache.org/commons/beanutils/

* BeanUtils Download: http://jakarta.apache.org/site/binindex.cgi



The versions I donated to BeanUtils have additional features over the
original ones posted on my web site - they now handle "lazy" indexed and
mapped properties. Additionally there is also a new LazyDynaMap which is a
light weight facade to a Map, but with the same "lazy" features (its "light
weight" because there no "real" DynaClass associated with it - it mimicks
the DynaClass behaviour from the properties stored in it). If you have an
existing Map of stuff, you can wrap it in a LazyDynaMap and use it then in
the normal DynaBean way.


I have also committed some changes to Struts which are available in the
nightly build (from beginning of August) - a new BeanValidatorForm (which is
now the basis of my lazy ActionForms) and changes to the FormBeanConfig
which mean you can initialize lazy ActionForm properties in the same way as
DynaActionForms - this is useful if you want to use "nested" lazy beans or
arrays of lazy beans. For example:

   <form-bean name="lazyForm"
type="org.apache.struts.validator.LazyValidatorForm">
        <form-property name="customer"
type="org.apache.commons.beanutils.LazyDynaBean" />
        <form-property name="products"
type="org.apache.commons.beanutils.LazyDynaBean[]" />
   </form-bean>

* Download Struts Nightly:
http://cvs.apache.org/builds/jakarta-struts/nightly/

I have also posted new versions of the LazyValidatorForm and
LazyValidatorActionForm on my web site and added LazyValidatorMap  and
LazyValidatorActionMap versions. These new versions are now actually very
simple with most of the logic factored out into the BeanValidatorForm I
added to Struts. These require the nightly Struts build and are available
here:

* Lazy ActionForms: http://www.niallp.pwp.blueyonder.co.uk


Niall







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to