This is not a solution. I have 2 submit button in one form: one for save and another for delete. All of them submit the form data to execute() method. There I can determine which button was pressed and do an appropriate bussines action.
The problem is that i must to validate the data when "OK" button is pressed and NOT validate when "DEL" button is pressed. ros wrote: > > For struts it's > <interceptor-ref name="validation"> > cancel,execute,delete,edit,list,print > </interceptor-ref> > > Hope this helps. > > ros > > > Igor Vlasov wrote: >> >> And how to disable the SERVER side validation when delete button clicked >> ? >> >> >> >> ros wrote: >>> >>> Java Script validation fro button disabled by >>> >>> <s:submit cssClass="button" method="delete" key="button.delete" >>> >>> onclick="document.getElementById('ticketForm').onsubmit = null;" /> >>> >>> >>> ros wrote: >>>> >>>> If I have in one form DELETE and SAVE buttons, how to turn off client >>>> side validation for DELETE button? >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13254948 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]