RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
Doh! Answered my own question: The page/form in question is using a combination of custom (i.e. using the validate method) and Validator validation, and one of the message keys in my own validate method was incorrect (i.e. The method was looking for a key that didn't exist). Cheers... Dave

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote: I think it would be better if we prompt all the errors at once to the user. The user should not wait till entering the valid fields and then check for the validity of the entered values. The "Required" condition should take the precedence over all other condition for that *part

Re: Validator Problem when using "Required"

2003-07-24 Thread R Balaji
Adam Hardy wrote: R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only "2" characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the *mi

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only "2" characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the *minlength* condition un

Re: Validator Problem when using "Required"

2003-07-24 Thread will . durrant
Hi, I think i'm having a similar problem with struts validation in that there seems to be a two stage validation process. All 'required' fields seem to be validated first and only once they are resolved then the min and max length validation is processed. My validation.xml is as follows;

Re: Validator Problem

2003-07-22 Thread Adam Hardy
read maxlength 16 minlength 2 Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can yo

Re: Validator Problem

2003-07-22 Thread Adam Hardy
Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message "title cannot be less than 2 characters" for the minlength validation, but I get "title cannot be more than null character

RE: Validator Problem

2003-07-22 Thread Canning, Chuck
- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message "title cannot be less t

Re: Validator Problem

2003-07-22 Thread Adam Hardy
Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message "title cannot be less than 2 characters" for the minlength validation, but I get "title cannot be more than null characters" for the maxlength validation.

Re: Validator Problem

2003-07-22 Thread prashant . mdesai
cc: [EMAIL PROTECTED]Subject: Re: Validator Problem

Re: Validator Problem

2003-07-22 Thread Siva
Hi prashant, In the validation.xml file, you have to give a name for the args. (how can it know that for what validation it has to use the args ?) So the arg0 shuld also contain a property called name="required" Please let me know whether it works, Sivakumar [EMAIL PROTECTED] wrote: > Hi, >

Re: Validator problem with integers

2003-06-19 Thread Brad Plies
Thank you Robert & Markus for your mask suggestions will work beautifully. I would have seen it before I suppose if I were more comfortable with regexp notation. Thank you again, Brad - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Validator problem with integers

2003-06-19 Thread Brad Plies
You are correct, my choice of words inadvertently changed the problem statement to something that I didn't mean. Very sharp eyes there. >An integer validation is not the same as a "are all characters numeric" >validation. I don't think the validator currently has a numeric check but >patches are

Re: Validator problem with integers

2003-06-19 Thread Markus Holzem
Hi Brad, use mask instead of integer. That should do the job. Error message states, that the entry is invalid. BTW, arg1 has to be used both for minlength and maxlength since {1} is the argument in the error message. I found that mask can solve nearly all validation problems if they are constr

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
Oh they fixed the bug. The version I downloaded must be old. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 4:45 PM To: 'Struts Users Mailing List' Subject: RE: Validator problem with integers Huh? How come nobody noticed t

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
== -1) return false; } return true; } - -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 4:23 PM To: 'Struts Users Mailing List' Subject: RE: Validator problem with integers Oh yeah. Sorry Well, at le

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
Oh yeah. Sorry Well, at least I pinpointed where the check failed:). >There is a js function called isAllDigits(arg) in validator-rules.xml. >It's >used by validateInteger(). You can use that. No you can't because that function validates based on the type of number (int, octal, etc). Dav

RE: Validator problem with integers

2003-06-18 Thread David Graham
lto:[EMAIL PROTECTED] Sent: June 18, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: Re: Validator problem with integers An integer validation is not the same as a "are all characters numeric" validation. I don't think the validator currently has a numeric check but patches are welcome. David &

RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
There is a js function called isAllDigits(arg) in validator-rules.xml. It's used by validateInteger(). You can use that. Yan -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: Re: Validator problem with int

Re: Validator problem with integers

2003-06-18 Thread David Graham
An integer validation is not the same as a "are all characters numeric" validation. I don't think the validator currently has a numeric check but patches are welcome. David Hi folks, Using struts-RC2, when using Validator with a dependency on "integer" validation, I have a problem with the v

RE: Validator problem with optional fields

2003-01-08 Thread Alistair Cairns
Cary Sorry this email does not provide an answer to your problem. I am coming across exactly the same problem. I was using 1.1b2 and downloaded 1.1b3. to overcome it. I see the problem with the minlength validator. if I have the following :

RE: Validator problem

2003-01-07 Thread Frank Livaudais
You need to add in the 'return': onsubmit="return (validateLoginForm(this));" -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 8:37 AM To: [EMAIL PROTECTED] Subject: Validator problem Hi, I am doing client-side validations using V

Re: Validator Problem

2002-11-13 Thread Andreas Langmann
> dynamicJavascript="false" generates dynamic javascript specially for a specified formName !this generated code needs the general javascript > staticJavascript="true" generates general javascript (functions for the generated code) so you can generate in every page the dynamic code and the gene

Re: Validator problem!

2002-08-16 Thread Marco Maier
I know about that, just like... public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); // check only if the second radio button is selected if(this.selected.equals("1") && !DateUtils.isDateValid(this.day,

RE: Validator problem!

2002-08-16 Thread Zimmer, Robin (SSABSA)
Once simple option is just to use a plain old ActionForm and override the validate method. -Original Message- From: Marco Maier [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 August 2002 5:48 PM To: Struts Users Mailing List Subject: Validator problem! Hi, Im using the struts validator to

RE: Validator problem (HELP ME PLS)

2002-06-21 Thread wbchmura
: Chmura, William B. Sent: Friday, June 21, 2002 9:31 AM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) I did a logic:messagesPresent and it showed that there was some messages present. Unfortunately neither or produces any output

RE: Validator problem (or user problem... not sure which yet)

2002-06-21 Thread wbchmura
ecstatic -Original Message- From: dwinterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:01 PM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) The change from using multiple set-property elements was made right after beta since it

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread David Winterfeldt
idator > feed the error messages > into the normal html:errors? I noticed it had a > validator taglib at one > point, but I am not sure where it is now that 1.1b > incorporated alot > > > > -Original Message- > From: Chmura, William B. > Sent: T

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread wbchmura
: Chmura, William B. Sent: Thursday, June 20, 2002 9:46 AM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) Where I have this in my validator.xml file... ?1 This means it should give me an error if it is not filled in? ?2 Should I have to invoke something from

Re: Validator Problem

2002-03-17 Thread David Winterfeldt
These tags were deprecated for a while and when the Validator was repackaged under org.apache.struts.validator they weren't moved over since there are the equivalent tags in Struts. So they might not be there depending on what version of the Validator you are using. validator:errorsExist --> log