On Wed, 20 Feb 2002, Roy Porter wrote:

> Date: Wed, 20 Feb 2002 22:05:44 -0000
> From: Roy Porter <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: DynaActionFormClass & set-property
>
> If you extend the DynaActionFormClass to add your own properties, the
> current code doesn't seem to copy these properties to the DynaActionForm
> class when it creates it.
>

By "add your own properties", do you mean adding your own *dynamic*
properties, or regular JavaBeans style properties?  Only the former are
used in DynaActionFormClass.

> In tracing the code through, the DynaActionFormClass gets initialized
> correctly with the properties form the struts-config file, but there
> doesn't seem to be any code to copy these over into the Form.
>

PropertyUtils (which is what the form tags use underneath the covers)
understands what to do with DynaBeans -- could you supply an example of
what you are trying to do?

> Is there any specific way the properties should be created, or has this
> code just not been written yet ?
>

I guess I've been assuming that people would just define what they need in
struts-config.xml and not have to subclass for this purpose.  The only
time you should need to subclass would be to implement a custom reset() or
validate() method.

> Roy.
>

Craig


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

Reply via email to