struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: [FORMDEF] Combining FormDef and Struts form definitions
Date Wed, 02 Nov 2005 19:57:47 GMT
On 11/2/05, Hubert Rabago <hrabago@gmail.com> wrote:
> On 11/2/05, Michael Jouravlev <jmikus@gmail.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message