On 11/2/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> >
> > Um, that is not exactly what I asked about. I want to define
> > resettable properties in struts-config.xml file (or somewhere else, I
> > don't care where), for example:
> >
> > <form-bean name="LogonForm"
> > type="org.apache.struts.validator.DynaValidatorForm">
> >   <form-property name="username" type="java.lang.String"/>
> >   <form-property name="password" type="java.lang.String" initial=""
> > reset="true"/>
> > </form-bean>
>
> Well, once Struts supports resettable fields then it'll be supported
> by FormDef.  FormDef supports the same attributes that <form-property>
> supports.  (Of course, there's no reset yet in struts-config, so there
> ain't any yet in formdef.  I'll put it there once we get it into
> struts.)

If it were possible to use form definitions made in struts-config.xml,
then you would not have to reimplement this property in FormDef, and I
would not have to wait for you to reimplement it ;-) I would just
apply your patch to my copy of DynaActionForm, and FormDef would pick
up transparently whatever properties are defined in struts-config.xml.
Is it possible at all? Or is it too much work?

In a way, this is similar to explicitly supporting all HTML tag
attributes in Struts tags instead of supporting whatever a developer
put into a tag as attribute, and to let user agent care about that.

Michael.

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

Reply via email to