struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff" <cl...@reinfo.com.hk>
Subject Re: HOw to avoid validations for certain submit buttons on a single form?
Date Wed, 05 Jan 2005 02:06:05 GMT
Hi,

Could I ask where to set the bCancel ?
as a parameter in the request ??

Thx a lot.

Cliff

----- Original Message ----- 
From: "Hubert Rabago" <hrabago@gmail.com>
To: "Struts Users Mailing List" <user@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 <jbarrows@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


Mime
View raw message