You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Krishna Mohan Radhakrishnan <Kr...@infosys.com> on 2005/01/05 04:50:15 UTC
RE: HOw to avoid validations for certain submit buttons on a singleform?
Sorry Hubert,
I tried with validate=false also.
It is not working. Moreover when I press Inactivate button, before going
to the Inactivate Plan Action class it is going to the validator
rules.xml and does the validation. So somehow I want to disable the form
validations when I click the Inactivate button.
Regards,
Krishna Mohan
From: Cliff [mailto:cliff@reinfo.com.hk]
Sent: Wednesday, January 05, 2005 7:36 AM
To: Struts Users Mailing List; Hubert Rabago
Subject: Re: HOw to avoid validations for certain submit buttons on a
singleform?
Hi,
Could I ask where to set the bCancel ?
as a parameter in the request ??
Thx a lot.
Cliff
----- Original Message -----
From: "Hubert Rabago" <hr...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, January 05, 2005 2:27 AM
Subject: Re: HOw to avoid validations for certain submit buttons on a
single
form?
> Like Jim said, take a look at the validate=false attribute for the
> /InactivatePlanAction. Also, the javascript validation will kick in
> by default. You can add an onClick handler to the "Inactivate" button
> to set "bCancel=true;" so the javascript validation is skipped.
>
> Hubert
>
> On Tue, 4 Jan 2005 10:19:06 -0700, Jim Barrows <jb...@sssc.com>
wrote:
> > > -----Original Message-----
> > > From: Krishna Mohan Radhakrishnan
[mailto:KrishnaMohan_R@infosys.com]
> > > Sent: Tuesday, January 04, 2005 9:28 AM
> > > To: Struts Users Mailing List
> > > Subject: HOw to avoid validations for certain submit buttons
> > > on a single
> > > form?
> > >
> > > But can I achieve the result in a single Actionform.
> >
> > Yes.
> > Read the validation and struts-config documentation and DTD's for
further details. Something about validate being false.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org