RE: Validation + multiple Submit buttons

2006-11-16 Thread Andrew Martin
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

Re: Validation + multiple Submit buttons

2006-11-14 Thread Laurie Harper
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()

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-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

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-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.

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
:[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

Re: Validation + multiple Submit buttons

2006-11-14 Thread Mark Shifman
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

Re: Validation + multiple Submit buttons

2006-11-14 Thread Ed Griebel
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,

Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
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

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
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

RE: Validation + multiple Submit buttons

2006-11-14 Thread Lance Semmens
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

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-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

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
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

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
. (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