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
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
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
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
>
>
>
>
4 matches
Mail list logo