On Fri, Dec 10, 2010 at 8:19 AM, Greg Akins wrote:
> Thanks Li.. you're correct. And I'm still wondering why the form in
> my Application won't display fieldError messages when I use only
> Serverside validation.
>
> If, on the s:form, I use validation="true" the javascript is included
> to do
Thanks Li.. you're correct. And I'm still wondering why the form in
my Application won't display fieldError messages when I use only
Serverside validation.
If, on the s:form, I use validation="true" the javascript is included
to do validation, and the errorMessages automagically appear
(theme="x
I think Michal was right.
If you don't want execute validation for some Action Method, the
annotation "@SkipValidation" is a good solution.
And, in your case,
I noticed that, your server side action is doing nothing when the
[cancel] button clicked.
I suggest you can put a html Link for your [can
On Thu, Dec 9, 2010 at 3:26 PM, Michal Ciasnocha wrote:
> Hi Greg,
>
> I use in my code @SkipValidation annotation for method which I don't want to
> validate. For me it is easier than use interceptors.
>
> @SkipValidation
> public String cancel() {
> return SUCCESS;
> }
>
> The second part - r
Hi Greg,
I use in my code @SkipValidation annotation for method which I don't
want to validate. For me it is easier than use interceptors.
@SkipValidation
public String cancel() {
return SUCCESS;
}
The second part - redirect - I hope is correct.
Regards, Michal.
Greg Akins wrote on 9.1
I need to have a "Cancel" button on a form that skips the validation
(Struts 2.2.1). This seems harder than it should be and maybe I'm
missing something.
I've read a few posts about this and ended using the validation
interceptorref to get this to work.
I've had problems getting the interceptorr
is issue. I have upload my code running on
> my tomcat server along with this post.
> http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip
>
> Please help me with this issue.
> Thanks in advance
>
>
--
View this message in context:
h
Your problem is in the following line in your struts.xml file -
/{1}.jsp
In itself, this configuration is not a bad thing, but it's location is
your problem. I think order is important in the struts.xml file. Since
this wildcard is located before
code running on my
tomcat server along with this post.
http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip
Please help me with this issue.
Thanks in advance
--
View this message in context:
http://www.nabble.com/How-to-bypass-validation-in-struts2-tp20082857p20082857.html
Sent from the S
Have the "Add Address" button submit to a different method - say,
addAddress() on personSave action itself.
ie
For suppressing validation for this method alone, but allowing for other
methods on the action, use the wildcard action mappings -- see earlier posts
for the same.
Thanks,
Joseph
On
Hello,
I'm new on struts 2, and I'm using just struts 2 right now (no ajax), and
the system I'm developing have a client and address, and I want to do
something like the folowing:
What I want to do is something like a partial form submission: above is the
first v
11 matches
Mail list logo