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
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
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
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
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;
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
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
-
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
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.
cc:
[EMAIL PROTECTED]Subject: Re: Validator Problem
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,
>
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]
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
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
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
== -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
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
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
&
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
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
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 :
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
> 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
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,
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
: 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
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
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
: 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
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
30 matches
Mail list logo