How tough will it be to modify the code so as to have individual action for each 
button.Well, if you can then thats the best way.Also will help in workflow (not sure 
whether thats part of the project requirement).
Rahul

-----Original Message-----
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;

<html:submit property="methodToCall" value="Cancel"
onclick="bCancel=true;"/>

Regards
Steve

-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

    We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

    Appreciate ideas.
Mohan


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


=======================================================
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
=======================================================


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


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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

Reply via email to