Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-12 Thread Lukasz Lenart
uestion in a new fresh thread. > > Best regards > Fredrik > > > >> From: fredan...@hotmail.com >> To: user@struts.apache.org >> Subject: RE: Why do I get this XHTML validation errors? (second attempt) >> Date: Sun,

RE: Why do I get this XHTML validation errors? (second attempt)

2014-03-10 Thread Fredrik Andersson
gt; From: fredan...@hotmail.com > To: user@struts.apache.org > Subject: RE: Why do I get this XHTML validation errors? (second attempt) > Date: Sun, 9 Mar 2014 20:56:20 + > > Hello again guys! > > I might need to bother you about this presumptive bug also. > > I got struts

RE: Why do I get this XHTML validation errors? (second attempt)

2014-03-09 Thread Fredrik Andersson
apache.org > Date: Fri, 7 Mar 2014 22:04:13 +0100 > Subject: Re: Why do I get this XHTML validation errors? (second attempt) > To: user@struts.apache.org > > Yes, that would be the best solution. > > 2014-03-07 22:02 GMT+01:00 Paul Benedict : >> We need a JIRA tick

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-07 Thread Lukasz Lenart
idates fine! >> > >> > Best regards >> > Fredrik >> > >> > >> > >> > >> >> From: thechrispr...@gmail.com >> >> Date: Thu, 6 Mar 2014 12:45:00 -0800 >> >&g

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-07 Thread Paul Benedict
rameters.templateDir}/simple/hidden.ftl" > /> > > > > > > > > Now it validates fine! > > > > Best regards > > Fredrik > > > > > > > > > >> From: thechrispr...@gmail.c

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-07 Thread Lukasz Lenart
--- >> From: thechrispr...@gmail.com >> Date: Thu, 6 Mar 2014 12:45:00 -0800 >> Subject: Re: Re: Why do I get this XHTML validation errors? (second attempt) >> To: user@struts.apache.org >> >> To elaborate on Dave's point, try: >> >&g

RE: Why do I get this XHTML validation errors? (second attempt)

2014-03-07 Thread Fredrik Andersson
t; /> Now it validates fine! Best regards Fredrik > From: thechrispr...@gmail.com > Date: Thu, 6 Mar 2014 12:45:00 -0800 > Subject: Re: Re: Why do I get this XHTML validation errors? (second attempt) > To: user@struts.apache.org

Sv: Re: Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Fredrik Andersson
next tuesday. Best regards Fredrik --- Originalmeddelande --- Från: "Chris Pratt" Skickat: 6 mars 2014 21:45 Till: "Struts Users Mailing List" Ämne: Re: Re: Why do I get this XHTML validation errors? (second attempt) To elaborate on Dave's point, try: // both hid

Re: Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Chris Pratt
To elaborate on Dave's point, try: // both hidden fields (*Chris*) On Thu, Mar 6, 2014 at 12:26 PM, Dave Newton wrote: > On Thu, Mar 6, 2014 at 3:01 PM, Fredrik Andersson >wrote: > > > I have tride to put the hidden attributet att: > > 1 first code line after the form-start-tag > >

Re: Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Dave Newton
On Thu, Mar 6, 2014 at 3:01 PM, Fredrik Andersson wrote: > I have tride to put the hidden attributet att: > 1 first code line after the form-start-tag > 2 before the submit-tag > 3 after the submit-tag, before form-end-tag. > None of the attempt validates. > So If you guys got any idea how to solv

Re: Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Paul Benedict
"Dave Newton" > Skickat: 6 mars 2014 17:57 > Till: "Struts Users Mailing List" > Ämne: Re: Why do I get this XHTML validation errors? (second attempt) > > I think the issue with the hidden elements is that they're not rendering in > a table row, and I do

Sv: Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Fredrik Andersson
If you guys got any idea how to solve this mystery plast let me know. Best regards Fredrik --- Originalmeddelande --- Från: "Dave Newton" Skickat: 6 mars 2014 17:57 Till: "Struts Users Mailing List" Ämne: Re: Why do I get this XHTML validation errors? (second attempt) I

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Dave Newton
I think the issue with the hidden elements is that they're not rendering in a table row, and I don't think you're supposed to have elements in-between (or before/after) a table's rows. On Thu, Mar 6, 2014 at 11:48 AM, Chris Pratt wrote: > Did you try moving the elements to the top of the form,

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Paul Benedict
Please note the "wrap" attribute on is new to (X)HTML5. So it definitely won't validate version <= 4. Chris is right, you should remove it unless you want to validate at a higher HTML version. On Thu, Mar 6, 2014 at 10:48 AM, Chris Pratt wrote: > Did you try moving the elements to the top of t

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Chris Pratt
Did you try moving the elements to the top of the form, or removing the wrap="hard" from your ? (*Chris*) On Thu, Mar 6, 2014 at 5:13 AM, Fredrik Andersson wrote: > Hello guys! > > I trying to produce a app that renders in XHTML. > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> >

Re: Why do I get this XHTML validation errors? (second attempt)

2014-03-06 Thread Dave Newton
You can always wrap the hidden tags in your own table row/etc. That's probably something that could be corrected in the "xhtml" theme. On Thu, Mar 6, 2014 at 8:13 AM, Fredrik Andersson wrote: > Hello guys! > > I trying to produce a app that renders in XHTML. > http://www.w3.org/TR/xhtml1/DTD/x

Why do I get this XHTML validation errors?‏ (second attempt)

2014-03-06 Thread Fredrik Andersson
Hello guys! I trying to produce a app that renders in XHTML. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> How ever I got a form looking like this: This gets rendered like: 25 26 27 28 Email address: 29 30 31 33 34 35 36 37 Subject:

Re: Why do I get this XHTML validation errors?

2014-03-06 Thread John Patrick
are right!I guess this is beacause I use online outlook!I will try > to post it again, written in curier new in textpad or something first!Sorry > again! > > > From: lukaszlen...@apache.org > > Date: Thu, 6 Mar 2014 14:02:56 +0100 > > Subject: Re: Why do I get this XHTML v

RE: Why do I get this XHTML validation errors?

2014-03-06 Thread Fredrik Andersson
Yes you are right!I guess this is beacause I use online outlook!I will try to post it again, written in curier new in textpad or something first!Sorry again! > From: lukaszlen...@apache.org > Date: Thu, 6 Mar 2014 14:02:56 +0100 > Subject: Re: Why do I get this XHTML validation err

Re: Why do I get this XHTML validation errors?

2014-03-06 Thread Lukasz Lenart
Unreadable :\ 2014-03-06 13:35 GMT+01:00 Fredrik Andersson : > Hello guys! > I trying to produce a app that renders in XHTML. "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> xmlns="http://www.w3.org/1999/xhtml";> > How ever I got a form looki

Why do I get this XHTML validation errors?

2014-03-06 Thread Fredrik Andersson
Hello guys! I trying to produce a app that renders in XHTML.http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>http://www.w3.org/1999/xhtml";> How ever I got a form looking like this: This gets rendered like:25 26 27 28 Email address:29 30 31 33 343536 37 Subject:38

Re: Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
nt when I submit the > corrected form. This is strange because my understanding is that field > errors should get cleared between requests, and the validation framework > shouldn't fire until after the prepare() method has fired. So why am I > seeing validation errors in the prepare m

Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
erAction and it shows that the previous field error is still present when I submit the corrected form. This is strange because my understanding is that field errors should get cleared between requests, and the validation framework shouldn't fire until after the prepare() method has fired. So why a

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
Er... The "validation" interceptor? Yeah, you're right, duh! I didn't realize that the validation interceptor is actually the AnnotationValidationInterceptor class :-P - To unsubscribe, e-mail: user-unsubscr...@struts.ap

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Dave Newton
Steven Hansen wrote: Are you sure that calling super.validate() from my action's implementation of validate() will invoke the XML/annotation validations? Hmm, I guess it just does the XML/annotation validation automatically without the super. Too late to change it in the book. Oh well... Kinda

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
ges, I just can't figure out which one it is :-( Thanks! Steven Dave Newton wrote: Steven Hansen wrote: Is there anyway to manually check possible validation errors on this action as if it were called by the Validation interceptor? The previous answer was partially correct, depending o

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Dave Newton
Steven Hansen wrote: Is there anyway to manually check possible validation errors on this action as if it were called by the Validation interceptor? The previous answer was partially correct, depending on what you're actually trying to do. If you implement a validate() method you can

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Bhaarat Sharma
public void setModel(User user) { > this.user = user; > } > } > > > Is there anyway to manually check possible validation errors on this action > as if it were called by the Validation interceptor? > > Thanks, > Steven > > > > > > -

Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
Model(User user) { this.user = user; } } Is there anyway to manually check possible validation errors on this action as if it were called by the Validation interceptor? Thanks, Steven - To unsubscribe, e-mail

Re: Please help! Validation Errors

2008-12-15 Thread Faraz Ali
08 09:47:33 +0800 > > From: farazali.fa...@gmail.com > > To: user@struts.apache.org > > Subject: Re: Please help! Validation Errors > > > > Any idea? > > > > On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali > wrote: > > > > > Hi Andy

RE: Please help! Validation Errors

2008-12-14 Thread Martin Gainty
08 09:47:33 +0800 > From: farazali.fa...@gmail.com > To: user@struts.apache.org > Subject: Re: Please help! Validation Errors > > Any idea? > > On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote: > > > Hi Andy, > > > > Please take a look at the code snipp

Re: Please help! Validation Errors

2008-12-14 Thread Faraz Ali
Any idea? On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote: > Hi Andy, > > Please take a look at the code snippet and suggest. > > *MyAction.java* > public class MyAction extends ActionSupport { > //getAction > //setAction > public String execute() throws Exception { > if(action==1) { >

Re: Please help! Validation Errors

2008-12-12 Thread Faraz Ali
Hi Andy, Please take a look at the code snippet and suggest. *MyAction.java* public class MyAction extends ActionSupport { //getAction //setAction public String execute() throws Exception { if(action==1) { return "input"; } elseif(action==2) { return "showResult"; } else { retur

Re: Please help! Validation Errors

2008-12-10 Thread Andy Sykes
Faraz, I think at this point some code would help. Could you post your struts.xml, and the action? Andy. On 10 Dec 2008, at 17:16, Faraz Ali wrote: Yes Andy, you are right. I added the , but why it is executing automatically. It is executed automatically when i start my application. On

Re: Please help! Validation Errors

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Faraz Ali wrote: > i mean when i access my application's main page. when i > hit http://localhost:8080/mywebapp. If you hit an action that has validations then this is correct behavior. There are a few ways to handle this, including defining an action that runs the action's

Re: Please help! Validation Errors

2008-12-10 Thread Faraz Ali
i mean when i access my application's main page. when i hit http://localhost:8080/mywebapp. On Thu, Dec 11, 2008 at 1:20 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 12/10/08, Faraz Ali wrote: > > Yes Andy, you are right. I added the , but why it > > is executing automatically. It i

Re: Please help! Validation Errors

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Faraz Ali wrote: > Yes Andy, you are right. I added the , but why it > is executing automatically. It is executed automatically when i start > my application. What do you mean by "when i start my application"? Are you visiting a URL? Dave

Re: Please help! Validation Errors

2008-12-10 Thread Faraz Ali
Yes Andy, you are right. I added the , but why it is executing automatically. It is executed automatically when i start my application. On Wed, Dec 10, 2008 at 6:19 PM, Andy Sykes <[EMAIL PROTECTED]> wrote: > Faraz, > > When using validation, the input result tells Struts where to > dispatch/redi

Re: Please help! Validation Errors

2008-12-10 Thread Andy Sykes
Faraz, When using validation, the input result tells Struts where to dispatch/ redirect to if there's a validation error. When you submit the form, Struts checks the fields against the validation XML - if there's an error, it adds FieldError objects to the FieldErrors object on the value s

Please help! Validation Errors

2008-12-09 Thread Faraz Ali
13:45:18,390 ERROR [ActionComponent] Could not execute action: /web/MyAction No result defined for action com.web.actions.MyAction and result input - action - file:/C:/ jboss-4.2.3.GA/server/default/tmp/deploy/tmp35854MyWeb-exp.war/WEB-INF/classes/struts.xml:12:69 1. I have a simple Action class M

RE: prepare action for input after validation errors

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, Martin Gainty wrote: > you can return the result you desire from the Action which > implements parameterNameAware interceptor > > > > good_result.ftl > > > http://struts.apache.org/2.x/docs/parameters-interceptor.html I guess I'm not clear on how that deals with his iss

RE: prepare action for input after validation errors

2008-09-08 Thread Martin Gainty
transmission. > Date: Mon, 8 Sep 2008 23:02:49 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: prepare action for input after validation errors > > I don't have any input method. I have a displayForm method, and a submitForm > method. > > T

Re: prepare action for input after validation errors

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, [EMAIL PROTECTED] wrote: > I don't have any input method. I have a displayForm > method, and a submitForm method. > > The displayForm method returns an input *result*, which is > a default result pointing to a JSP. This JSP has to display > some data coming from the database.

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
I don't have any input method. I have a displayForm method, and a submitForm method. The displayForm method returns an input *result*, which is a default result pointing to a JSP. This JSP has to display some data coming from the database. I'd like this same JSP to be displayed when the input

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
How did you configure your input method? What is the name of this method? I still don't understand why you can use Prepare interceptor, just implement prepareDoInput() method and that method will be called just before input() call. If input result redirect to some other action, configure and imple

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
I know that. But this does not solve the problem I described. prepareXxx will be invoked if I the action method is xxx. I validation fails, it'll work: the input page will have the prepared data ready in the action instance. If validation succeeds, however, the prepareXxx method will have prepar

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
You can use perpareXXX method per action method as mentioned in docs: Applies only when action implements Preparable 1. if the action class have prepare{MethodName}(), it will be invoked 2. else if the action class have prepareDo(MethodName()}(), it will be invoked 3. no matter if 1] or

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
Hi. Thanks for your answer. But as I said in my original post, the prepare interceptor would prepare the action regardless of the validation result. If the validation succeeds, I don't want the data for the input page to be prepared, as the flow will go to the submit method which will redirect

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
Hi, Take a look at Prepare Interceptor [1] and Preparable interface [2] [1] http://struts.apache.org/2.x/docs/prepare-interceptor.html [2] http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html Regards -- Lukasz http://www.lenart.org.pl/ --

prepare action for input after validation errors

2008-09-07 Thread Jean-Baptiste Nizet
Hello. I'm reading the documentation for Struts 2 (after lots of work on Struts 1 and Beehive), and I wonder if an interceptor exists in order to prepare the action after the validation fails, and before going back to the input page. Imagine the following action class : public class MyAction

Notify Topics and Validation Errors

2008-04-21 Thread manishbel
Hello Is there way prevent notifyTopics from being triggered if there are any validation errors? Thanks Manish -- View this message in context: http://www.nabble.com/Notify-Topics-and-Validation-Errors-tp16808233p16808233.html Sent from the Struts - User mailing list archive at Nabble.com

Re: chaining validation errors

2008-02-06 Thread chubi
STORE licenses.html licenses.html licenses.html editLicense.html true ${license.dkey} -- View this message in context: http://www.nabble.com/chaining-validation

Re: chaining validation errors

2008-02-05 Thread Laurie Harper
chubi wrote: Thank you Dave for helping, Below is the fragment in struts.xml where editLicense should submit to saveLicense, which in return should redirect to editLicense again. That is the call to saveLicense is transparent. Submit to saveLicense was intercepted by validation. Errors were

Re: chaining validation errors

2008-02-05 Thread chubi
Thank you Dave for helping, Below is the fragment in struts.xml where editLicense should submit to saveLicense, which in return should redirect to editLicense again. That is the call to saveLicense is transparent. Submit to saveLicense was intercepted by validation. Errors were found! What

Re: chaining validation errors

2008-02-05 Thread Dave Newton
--- chubi <[EMAIL PROTECTED]> wrote: > After submitting editAction to SaveAction, I want to redirect again to > EditAction. > So SaveAction is totally transparent. > But I get lost all fieldErrors if validation return false. > How can I chain validation errors? > I

chaining validation errors

2008-02-05 Thread chubi
Hello, After submitting editAction to SaveAction, I want to redirect again to EditAction. So SaveAction is totally transparent. But I get lost all fieldErrors if validation return false. How can I chain validation errors? I tried the use of several interceptors like: validaiton, chain and params

Re: validation errors

2007-11-20 Thread Brian Relph
I realized that since this was a custom validator, I can add the error message to the fieldErrors with whatever key i choose - so i can now reference that error message. What about for other validators, like the expression validator, is there a way to specify a key for it? I think the expression

validation errors

2007-11-20 Thread Brian Relph
Can I reference action errors / messages in a similar way to field errors? I have a custom validator for a date field that is split into month/day/year fields, but i want the errors for it to appear next to inputs. Here are my validators: ^\d{4}$ which i referen

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Just stumbled on that as you replied. Thanks again. (But not for the pun ;) ) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:27 To: Struts Users Mailing List Subject: RE: Validation errors in Action --- Dean Pullen <[EMAIL PROTECTED]> wrote

RE: Validation errors in Action

2007-10-12 Thread Dave Newton
--- Dean Pullen <[EMAIL PROTECTED]> wrote: > Is there any documentation anywhere, where I can see > how to correctly return errors in the validate > method? This is a WW article but should still be valid. Ha ha, valid, get it? http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Is there any documentation anywhere, where I can see how to correctly return errors in the validate method? Cheers. -Original Message- From: Julien Leonard [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:17 To: 'Struts Users Mailing List' Subject: RE: Validation errors

RE: Validation errors in Action

2007-10-12 Thread Julien Leonard
Hello, Why don't you use the validate() method ? Julien -Message d'origine- De : Dean Pullen [mailto:[EMAIL PROTECTED] Envoyé : vendredi 12 octobre 2007 17:13 À : Struts Users Mailing List Objet : Validation errors in Action Hi all, How do you get hold of the validation er

Validation errors in Action

2007-10-12 Thread Dean Pullen
Hi all, How do you get hold of the validation errors in an Action? Basically due to some complexity, we need to manually add an error within the prepare() method if something isn't correct. Thanks, Dean. - To unsubscri

Re: How to handle validation/errors in Ajax requests

2007-09-19 Thread Musachy Barroso
ajax request with a > > This pumps the result in the target div tag and all is perfect. But how can > I handle validation errors. > They should not appear in the target div tag, instead it should appear in a > different div tag for errors. > Can I change the target or can I force the s

How to handle validation/errors in Ajax requests

2007-09-19 Thread Marc Eckart
Hi, I start a ajax request with a This pumps the result in the target div tag and all is perfect. But how can I handle validation errors. They should not appear in the target div tag, instead it should appear in a different div tag for errors. Can I change the target or can I force the site to

Re: Struts2 - displaying validation errors on jsp

2007-03-18 Thread Ray Clough
Thanks, Dave. It works fine, but neither the cssClass nor cssStyle attributes work. - Ray Clough [EMAIL PROTECTED] Dave Newton wrote: --- Ray Clough <[EMAIL PROTECTED]> wrote: Could someone tell me what to retrieve to display validation errors manually? http://struts.apache

Re: Struts2 - displaying validation errors on jsp

2007-03-18 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > Could someone tell me what to retrieve to display > validation errors manually? http://struts.apache.org/2.x/docs/fielderror.html (Although... I vaguely recall a thread from last week referring to but I can't tes

Struts2 - displaying validation errors on jsp

2007-03-18 Thread Ray Clough
The struts2 s:textfield tag will automatically display the validation errors if you use the xhtml theme. I want to use the simple theme, and don't see any examples of how to retrieve the error messages for a given field. Could someone tell me what to retrieve to display validation e

RE: JavaScript validation errors

2006-08-14 Thread O'Shea, Sean
Sean -Original Message- From: O'Shea, Sean Sent: Monday, August 14, 2006 10:32 AM To: user@struts.apache.org Subject: RE: JavaScript validation errors Hi Srinivas, I tried setting my login form like this: . ... Still no luck in getting the javascript function called though. I'

RE: JavaScript validation errors

2006-08-14 Thread Srinivas_Biragoni
Subject RE: JavaScript validation errors Please respond to "Struts Users Mailing List"

RE: JavaScript validation errors

2006-08-14 Thread O'Shea, Sean
race somewhere in the code? Has anyone else come across this problem? Thanks Sean -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 5:39 AM To: Struts Users Mailing List Subject: RE: JavaScript validation errors Hi sean, i thin

RE: JavaScript validation errors

2006-08-14 Thread Srinivas_Biragoni
08/12/2006 12:11 cc AM Subject RE: JavaScript validation errors

RE: JavaScript validation errors

2006-08-11 Thread O'Shea, Sean
} if (fields.length > 0) { focusField.focus(); alert(fields.join('\n')); } return isValid; } // Trim whitespace from left and right sides of s. function trim(s) { return s.replace( /^\s*/, "" ).replace( /\s*$/, &

Re: JavaScript validation errors

2006-08-11 Thread Monkeyden
m Gordon [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 11:56 AM To: Struts Users Mailing List Subject: Re: JavaScript validation errors Sean- You need to add an "onsubmit" attribute to your html:form" element that calls the validation function. Specifically, IIRC, it needs to s

RE: JavaScript validation errors

2006-08-11 Thread O'Shea, Sean
ideas on this? Thanks again Sean -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 11:56 AM To: Struts Users Mailing List Subject: Re: JavaScript validation errors Sean- You need to add an "onsubmit" attribute to your html:form&qu

Re: JavaScript validation errors

2006-08-11 Thread Adam Gordon
Sean- You need to add an "onsubmit" attribute to your html:form" element that calls the validation function. Specifically, IIRC, it needs to say: onsubmit="return validateForm(this); happy coding, -adam O'Shea, Sean wrote: Hi all, I'm using struts 1.2.7 with commons-validator-1.1.4 and I'

JavaScript validation errors

2006-08-11 Thread O'Shea, Sean
Hi all, I'm using struts 1.2.7 with commons-validator-1.1.4 and I'm running into a few generated JavaScript errors. Here's what my JSP looks like: : : "/>

Re: Validation errors

2006-06-26 Thread Niall Pemberton
You can use the "property" attribute to filter a specific properties messages: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5 Niall On 6/26/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! Just as I said in my last message, it's been a while since my

Validation errors

2006-06-26 Thread Vinicius Carvalho
Hello there! Just as I said in my last message, it's been a while since my last struts experience :). I'm using automatic validation for my formbeans (using the validator e validation.xml). Well, displaying general errors is ok , as I'm doing this: But how do I present each error in

RE: Accessing Validation Errors in an Action

2006-04-28 Thread Chaudhary, Harsh
:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 7:10 PM To: Struts Users Mailing List Subject: Re: Accessing Validation Errors in an Action if the validation is done at the server side (in your actionform), then you can easily get the errors. On 4/28/06, Asad Habib <[EMAIL PROTECTED]> wrote: &

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
Hello Rick. Great! Thank you for the URL. This site has a wealth of information on it! - Asad On Thu, 27 Apr 2006, Rick Reumann wrote: Asad Habib wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my actio

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Rick Reumann
Asad Habib wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action code so I can throw the appropriate kind of exception. Thanks. I show this very thing at the end of this article: http://www.learntechn

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Lixin Chu
if the validation is done at the server side (in your actionform), then you can easily get the errors. On 4/28/06, Asad Habib <[EMAIL PROTECTED]> wrote: > > How do I access errors that the Validator places in the ActionErrors > object instance within a Struts action? I need to do this in my action

Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action code so I can throw the appropriate kind of exception. Thanks. - Asad - To unsubscribe

Re: Working with business validation errors

2006-04-14 Thread Adam Hardy
Emmanouil Batsis on 14/04/06 08:56, wrote: I'm very interested to hear about how do you guys handle business-tier-dependent validation errors in a struts+EJB application. For example, suppose a user tries to create an account with a username that already exists (maybe a poor example bu

Working with business validation errors

2006-04-14 Thread Emmanouil Batsis
Hello, I'm very interested to hear about how do you guys handle business-tier-dependent validation errors in a struts+EJB application. For example, suppose a user tries to create an account with a username that already exists (maybe a poor example but you get the point), but you can

Re: using a resource key to extra validation errors

2006-02-17 Thread Niall Pemberton
Ahh good, your're welcome - its a relief :-) Niall - Original Message - From: "Chris Cheshire" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, February 17, 2006 5:13 PM Subject: Re: using a resource key to extra validation errors Doh. T

Re: using a resource key to extra validation errors

2006-02-17 Thread Chris Cheshire
Doh. Thanks Niall. I see now. Thanks for perservering Chris On 2/17/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > You want to inernationalize your labels/messages/text - but not the names of > your properties on your form bean [snip] --

Re: using a resource key to extra validation errors

2006-02-17 Thread Niall Pemberton
You want to inernationalize your labels/messages/text - but not the names of your properties on your form bean - if you had a property "house" - you wouldn't have a different property on your form bean depending on the Locale (getHouse() / setHouse() for English and getMaison() setMaison() for Fren

Re: using a resource key to extra validation errors

2006-02-17 Thread Dave Newton
Chris Cheshire wrote: > > breaks internationalisation. > You want to internationalize the names of the properties? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using a resource key to extra validation errors

2006-02-17 Thread Chris Cheshire
Internationalisation. Resource bundle contains (among other things): label.password=password The label of the field is looked up from the resource bundle: The validation error in the form is keyed on that same value, looked up from the resource bundle: String label = resources.getMessage("label

Re: using a resource key to extra validation errors

2006-02-17 Thread Niall Pemberton
So what are you after? Why do you need to use a value from the resources as the message property? Niall - Original Message - From: "Chris Cheshire" <[EMAIL PROTECTED]> Sent: Friday, February 17, 2006 7:09 AM Yes what I have in my code is exactly what is in the example. It is not howeve

Re: using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
Yes what I have in my code is exactly what is in the example. It is not however what I am after. What is the point of using things from the resource bundle if it only works through 3/4 of the application? I have the error message next to the input field, by hardcoding the result of what would be

Re: using a resource key to extra validation errors

2006-02-16 Thread Niall Pemberton
Did you try my suggestion - I believe that will do exactly what you want - you seem to be getting confused between the key used to store the ActionErrors in the request (global error key) and the property under which a message is stored in the ActionErrors. The validwhen example in the struts-exam

Re: using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
That's not the issue, it is actually doing that, via a resource bundle lookup (I only have one configured). I want to be able to retrieve the error on the jsp side by getting the key via the resource bundle similar to the way it is being added, instead of just using the value that is referenced in

Re: using a resource key to extra validation errors

2006-02-16 Thread Niall Pemberton
Modify your code to do this: errors.add("password", message); http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5 Niall - Original Message - From: "Chris Cheshire" <[EMAIL PROTECTED]> Sent: Friday, February 17, 2006 1:50 AM I have an ActionForm

using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
I have an ActionForm with its own validate method that adds errors keyed upon entries in a resource bundle, so that the errors can be linked back to the field they are pertinent to, not just as a global error. String label = resources.getMessage("label.password"); ActionMes

Validation - how to get form field names with validation errors

2006-02-01 Thread Karthik Manimaran
Hi, I am using the following to display all the validation errors in a form. How can I get the form field names that correspond to each of the errors reported or atleast a list of all form fields that have an error. Thanks and regards, Karthik.

Show validation errors in a frame

2005-10-21 Thread Keith Sader
Greetings I've an iframe embedded in a .jsp. The iframe contents are another set of .jsps that contain a form submit (the reason we've done it like this is so that the embedded iframe looks like a tabbed diallog). When I submit the iframed form, I'd like to display the errors on the containing p

Re: Associating validation errors with input fields

2005-10-18 Thread Christopher Becker
Ramesh; That was it... I had overlooked the property attribute of the errors tag... thanks for your help! Regards, Chris >>> [EMAIL PROTECTED] 10/18/2005 9:24:23 AM >>> Hi there, Say u hv a with the property name "custName". U can use right below the . So, when an action error occurs,

  1   2   >