-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul,
> To "clone" a DynaValidatorForm perhaps something like this will work:
>
> LazyDynaBean obj = new LazyDynaBean(); // create a lazy dyna bean
> BeanUtils.copyProperties(obj, dyForm); // save your form properties
> session.setAttribute("saved.obj", obj);
Really? BeanUtils.copyProperties seems to indicate that it copies "bean
properties" which are usually defined as strings for which the methods
getFoo and setFoo exist. For a DynaValidatorBean, no such methods exist.
It also turns out that creating the target object is the problem, not
copying the properties. My simple loop over the bean's property map is
sufficient.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFRqPK9CaO5/Lv0PARAst0AJ0VCwfqSjqHOiVmzQbmWVfDRCfPFwCfQ8ON
BKt7dzQABmipctTcHfQ5Aoo=
=dg/b
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]