Re: Disable validation when "delete" button is pressed

2007-10-18 Thread Igor Vlasov
The most elegant method is to give a SPECIAL name to "delete" button. It must looks like: and I found it in http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html this post by Ian Roughley an Roughley wrote: > > you can always use and > - then you don

RE: Disable validation when "delete" button is pressed

2007-10-17 Thread Jiang, Jane (NIH/NCI) [C]
You can use the @SkipValidation annotation in front of your delete method. -Original Message- From: Igor Vlasov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 9:59 AM To: user@struts.apache.org Subject: Disable validation when "delete" button is pressed Hello. I have

Re: Disable validation when "delete" button is pressed

2007-10-17 Thread Dave Newton
One way is to submit to a different method for deleting and configure the validation interceptor to disable validation for that method for that action. --- Igor Vlasov <[EMAIL PROTECTED]> wrote: > > Hello. > > I have > theme="xhtml" > > label="E-mail" /> > theme="simple"> >theme

Re: Disable validation when "delete" button is pressed

2007-10-17 Thread Gabriel Belingueres
I've solved this by changing the action in the form: but you must rename your CustomerCRUD-validation.xml file to CustomerCRUD--validation.xml file. Just don't define any validation file for the delete action. 2007/10/17, Igor Vlasov <[EMAIL PROTECTED]>: > > Hello. > > I have > > > >