-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nathan,
Nathan Coast wrote:
> this feels better as the existing framework is responsible for executing
> all validations, assembling cumulative errors and creating localised
> messages. I'm just not sure it's possible to add validations.
Whenever I
apologies if this is a dumb question, but how come there is no
validateBoolean?
Niall Pemberton wrote:
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote:
Hi Niall,
thanks again for the quick response.
I've been looking at the struts and validator source and have a couple
of ideas for a solut
excellent stuff,
It would probably have taken me a couple of weeks to get here :)
I'll let you know how I got on.
cheers
Nathan
Niall Pemberton wrote:
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote:
Hi Niall,
thanks again for the quick response.
I've been looking at the struts and valid
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote:
Hi Niall,
thanks again for the quick response.
I've been looking at the struts and validator source and have a couple
of ideas for a solution to my problem.
1) just create an appropriate validator and execute it. Simpler but
doesn't 'feel' as
Hi Niall,
thanks again for the quick response.
I've been looking at the struts and validator source and have a couple
of ideas for a solution to my problem.
1) just create an appropriate validator and execute it. Simpler but
doesn't 'feel' as good.
IntegerValidator validator = IntegerVali
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote:
thanks Niall,
I've had a look at the examples and I'm not sure they demonstrate what I
need. The examples all seem to be simple boolean expressions e.g.
test
( (*this* != null) or
thanks Niall,
I've had a look at the examples and I'm not sure they demonstrate what I
need. The examples all seem to be simple boolean expressions e.g.
test
( (*this* != null) or
( (address2 == null) and
(
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote:
Hi,
I have two fields in a form. I believe the validwhen rule executes a
specific rule (e.g. required) on field a based upon the value of field
b. The situation I have is that I need to execute different validations
on field a determined by th
Hi,
I have two fields in a form. I believe the validwhen rule executes a
specific rule (e.g. required) on field a based upon the value of field
b. The situation I have is that I need to execute different validations
on field a determined by the value of field b.
Is this possible client sid
Betty Koon wrote:
Matt,
Have you tried putting just white spaces in the field for first name in the
third test case. It will pass which is incorrect, that's the part I don't
understand and got stucked on. It looked like validwhen treated all
whitespace string value for a field the same way as the
ld is null.
-Betty
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 2:30 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation
Betty Koon wrote:
> It's Server side.
>
> -Betty
>
> -Original Message---
a textbox.
-Betty
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 2:30 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation
Betty Koon wrote:
> It's Server side.
>
> -Betty
>
> -Original Message---
Betty Koon wrote:
It's Server side.
-Betty
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 2:15 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation
Betty Koon wrote:
My question is even if I type 123 in the field, it
It's Server side.
-Betty
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 2:15 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation
Betty Koon wrote:
> My question is even if I type 123 in the field, it still c
Betty Koon wrote:
My question is even if I type 123 in the field, it still complains about the
field is required?? I am really confused now ...
Ahh, missed that one - is it Javascript or server-side validation doing
the complaining?
Matt
-
: ValidWhen validation
Betty Koon wrote:
> Matt,
>
> I have also tried to match a different mask like ^123$ for a test.
> And it always complains about the field is required. Any idea?
>
It is the same basic problem, you are saying now that the field is
required and that it must be
Betty Koon wrote:
Matt,
I have also tried to match a different mask like ^123$ for a test. And it
always complains about the field is required. Any idea?
It is the same basic problem, you are saying now that the field is
required and that it must be the string "123".
I was thinking about this a
: Re: ValidWhen validation
Betty Koon wrote:
> That's originally what I have (without mask), the non-whitespace check
> is not performed by validwhen. I wasn't sure if I can use validwhen
> together with mask. I was able to use validwhen in conjunction with
> email validat
Betty Koon wrote:
That's originally what I have (without mask), the non-whitespace check is
not performed by validwhen.
I wasn't sure if I can use validwhen together with mask.
I was able to use validwhen in conjunction with email validator though.
You can use validwhen and mask together. The probl
je [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 1:15 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation
Betty Koon wrote:
> Hi all,
>
> I am trying to do the form field A and B.
>
> Here is the example:
>
> Field A will be required and should con
Betty Koon wrote:
Hi all,
I am trying to do the form field A and B.
Here is the example:
Field A will be required and should contain a non-whitespace string if B is
true.
Here is the rule segement I defined in the validation.xml. I can't get it
work correctly. Can someone tell me what I am doing
Hi all,
I am trying to do the form field A and B.
Here is the example:
Field A will be required and should contain a non-whitespace string if B is
true.
Here is the rule segement I defined in the validation.xml. I can't get it
work correctly. Can someone tell me what I am doing it wrong. Tha
CTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 4:10 PM
Subject: (repost) validwhen validation
> I seem to have deleted the original messages to this thread, but it is
> probably best that I just ask the question again anyway.
>
>
I seem to have deleted the original messages to this thread, but it is
probably best that I just ask the question again anyway.
I am rather new to struts and I am trying to use the validwhen
dependency for validation. After finding out that validwhen feature
wasn't included in struts 1.1 final re
truts/conf/share/
>
> or if you download a nightly build, it should be in the conf/share directory
>
> Niall
>
>
> - Original Message -
> From: "Josh Cronemeyer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 11, 2
> Niall
>
>
> - Original Message -
> From: "Josh Cronemeyer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 11, 2004 4:17 PM
> Subject: validwhen validation
>
>
> > Is there any way to use validwhen ye
what do I specify as the id to iterate over the ActionErrors in the page
scope
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 10:48 AM
To: Struts Users Mailing List
Subject: Re: validwhen validation
I was under the (mistaken) impression it
should be in the conf/share directory
Niall
- Original Message -
From: "Josh Cronemeyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 4:17 PM
Subject: validwhen validation
> Is there any way to use validwhen yet? I would really
Is there any way to use validwhen yet? I would really like to use it,
but it isn't in my validator-rules.xml, and I can't find a
validator-rules.xml version anywhere that includes it.
thanks in advance
-
To unsubscribe, e-mai
29 matches
Mail list logo