You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Louise Pryor <li...@louisepryor.com> on 2003/08/17 16:53:43 UTC
DynaValidatorForm and DynaValidatorActionForm
What is the difference between DynaValidatorForm and
DynaValidatorActionForm ? What would be the reasons for using one
over the other?
(And have I missed something obvious in the documentation here?)
Thanks for any help!
--
Louise Pryor
http://www.louisepryor.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: DynaValidatorForm and DynaValidatorActionForm
Posted by David Friedman <hu...@ix.netcom.com>.
Andy,
Your solution worked perfectly:
<html:javascript formName="/sectionUpdate" method="validateForm" />
I spent most of my time in the wrong place: the Validator User Guide. Even
though I skimmed the HTML tablib reference page, I didn't notice the method
segment. My other problem was blank validations caused by a 'page="1"'
parameter in my html:javascript tag. I'd forgotten to remove it when I'd
switched away from multipage validation back to one-page validation.
Regards,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: DynaValidatorForm and DynaValidatorActionForm
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
When you configure your forms to be DynaValidatorForms, then struts will
choose to use the form you defined in validation.xml with the same name
as the action mapping's name attribute. This should also correspond to a
form definition in the struts-config form-beans section.
With DynaActionValidatorForms, struts looks for a form definition in
validation.xml with the name the same as the path attribute of your
action mapping.
i.e. with DynaValidatorForms you always get the same validation done on
a particular struts-config-defined formbean.
With DynaValidatorActionForms any particular validation definition in
validation.xml is executed for a particular URL, the path in the action
mapping.
David, try using the method attribute:
<html:javascript formName="/sectionUpdate" method="validateForm" />
On 08/17/2003 08:25 PM David Friedman wrote:
> Speaking of ValidationActionForms (and derivatives),
> when you use a DynaValidatorActionForm or a
> ValidatorActionForm, how do you use it in an
> <html:javascript/> tag? I tried using it as
> <html:javascript formName="/logon"/> and it
> gave me a weird Javascript function declared:
> "function validate/logon(form)"
>
> Regards,
> David
>
> -----Original Message-----
> From: Bill Chmura [mailto:Bill@Explosivo.com]
> Sent: Sunday, August 17, 2003 2:04 PM
> To: 'Struts Users Mailing List'; 'Louise Pryor'
> Subject: RE: DynaValidatorForm and DynaValidatorActionForm
>
>
> AFAIK the DynaValidatorForm is associated with a form-bean, and the
> DynaValidatorActionForm is associated with an action-form.
>
> To be honest I am not quite sure what that means, but as luck would have
> it I just read it yesterday in the o'reilly book :)
>
>
>
> > -----Original Message-----
> > From: Louise Pryor [mailto:lists@louisepryor.com]
> > Sent: Sunday, August 17, 2003 10:54 AM
> > To: Struts Users Mailing List
> > Subject: DynaValidatorForm and DynaValidatorActionForm
> >
> >
> > What is the difference between DynaValidatorForm and
> > DynaValidatorActionForm ? What would be the reasons for
> > using one over the other?
> >
> > (And have I missed something obvious in the documentation here?)
> >
> > Thanks for any help!
> >
> > --
> > Louise Pryor
> > http://www.louisepryor.com
> >
> >
> >
> > ------------------------------------------------------------
> > ---------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: DynaValidatorForm and DynaValidatorActionForm
Posted by David Friedman <hu...@ix.netcom.com>.
Speaking of ValidationActionForms (and derivatives),
when you use a DynaValidatorActionForm or a
ValidatorActionForm, how do you use it in an
<html:javascript/> tag? I tried using it as
<html:javascript formName="/logon"/> and it
gave me a weird Javascript function declared:
"function validate/logon(form)"
Regards,
David
-----Original Message-----
From: Bill Chmura [mailto:Bill@Explosivo.com]
Sent: Sunday, August 17, 2003 2:04 PM
To: 'Struts Users Mailing List'; 'Louise Pryor'
Subject: RE: DynaValidatorForm and DynaValidatorActionForm
AFAIK the DynaValidatorForm is associated with a form-bean, and the
DynaValidatorActionForm is associated with an action-form.
To be honest I am not quite sure what that means, but as luck would have
it I just read it yesterday in the o'reilly book :)
> -----Original Message-----
> From: Louise Pryor [mailto:lists@louisepryor.com]
> Sent: Sunday, August 17, 2003 10:54 AM
> To: Struts Users Mailing List
> Subject: DynaValidatorForm and DynaValidatorActionForm
>
>
> What is the difference between DynaValidatorForm and
> DynaValidatorActionForm ? What would be the reasons for
> using one over the other?
>
> (And have I missed something obvious in the documentation here?)
>
> Thanks for any help!
>
> --
> Louise Pryor
> http://www.louisepryor.com
>
>
>
> ------------------------------------------------------------
> ---------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: DynaValidatorForm and DynaValidatorActionForm
Posted by Bill Chmura <Bi...@Explosivo.com>.
AFAIK the DynaValidatorForm is associated with a form-bean, and the
DynaValidatorActionForm is associated with an action-form.
To be honest I am not quite sure what that means, but as luck would have
it I just read it yesterday in the o'reilly book :)
> -----Original Message-----
> From: Louise Pryor [mailto:lists@louisepryor.com]
> Sent: Sunday, August 17, 2003 10:54 AM
> To: Struts Users Mailing List
> Subject: DynaValidatorForm and DynaValidatorActionForm
>
>
> What is the difference between DynaValidatorForm and
> DynaValidatorActionForm ? What would be the reasons for
> using one over the other?
>
> (And have I missed something obvious in the documentation here?)
>
> Thanks for any help!
>
> --
> Louise Pryor
> http://www.louisepryor.com
>
>
>
> ------------------------------------------------------------
> ---------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org