Schultz [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 15:37
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
> That would be one solution, but in my case I have 4 sub
Andrew Martin wrote:
Maybe a stupid question but is it possible to call the specifc XML
configuration from within the action?
Yup, just set up your validation as usual, then set validate="false" on
the action mapping and call the validation by hand:
ActionMessages errors = form.validate()
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
> That would be one solution, but in my case I have 4 submit buttons,
> two of which redirect the user to another action (keeping scope set to
> session)
> and then back to the original form.
Hmm... that makes things mor
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lance,
Lance Semmens wrote:
> A JS free application? You can assume today's browsers have
> javascript, the web would break otherwise. Sure there are some cross
> platform issues but to go JS free is a tall order and will limit you
> to a clunky UI.
:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 15:20
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
You could turn off automatic validation in struts-config.xml and call
it manually in the action method when you need validation.
If you are using a recent
Use a Cancel button
http://struts.apache.org/1.x/struts-taglib/tlddoc/html/cancel.html
from javadoc
Renders an HTML element of type submit. This tag is only valid
when nested inside a form tag body. Pressing of this submit button
causes the action servlet to bypass calling the associated form
page.
-Oorspronkelijk bericht-
Van: Lance Semmens [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 14:54
Aan: 'Struts Users Mailing List'
Onderwerp: RE: Validation + multiple Submit buttons
A JS free application? You can assume today's browsers have javascript,
Hi,
I have just begun to add validation to my forms using struts validator, which
is quite nice. I have however a problem when I have more than one submit button
on a form.
For example I have a Save button and a Back button.
The Back button is also a submit (instead of a standard button - basic
an: 'Struts Users Mailing List'
Onderwerp: RE: Validation + multiple Submit buttons
A JS free application? You can assume today's browsers have javascript, the web
would break otherwise. Sure there are some cross platform issues but to go JS
free is a tall order and will limit you to a
posts to a different action to your save.
Lance.
-Original Message-
From: Andrew Martin [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 13:36
To: Struts Users Mailing List
Subject: Validation + multiple Submit buttons
Hi,
I have just begun to add validation to my forms using struts vali
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
> I have just begun to add validation to my forms using struts
> validator, which is quite nice. I have however a problem when I have
> more than one submit button on a form.
>
> For example I have a Save button and a Bac
Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
> That would be one solution, but in my case I have 4 submit buttons,
> two of which redirect the user to another action (keeping scope
.
(if that make sense!)
-Oorspronkelijk bericht-
Van: Christopher Schultz [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 14:48
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew
13 matches
Mail list logo