Hi,
Please help me.
I am trying to force users to enter dates in the
format 23/JAN/2003, therefore, I have the setting
below in the validator.xml. The maxlength bit works,
but date parsing does not work, for example the
validator does not complain if I enter an invalid date
such as
Hi,
I think it should be
var-valuedd/MM//var-value
instead of
var-valuedd/MMM//var-value
--- Research labs [EMAIL PROTECTED] wrote:
Hi,
Please help me.
I am trying to force users to enter dates in the
format 23/JAN/2003, therefore, I have the setting
below in the
-Original Message-
From: struts lover [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 12:49 PM
To: Struts Users Mailing List
Subject: Re: date parsing/validation...newbie
Hi,
I think it should be
var-valuedd/MM//var-value
instead of
var-valuedd/MMM/
Try datePatternStrict as the var-name instead of datePattern.
Erik
Research labs wrote:
Hi,
Please help me.
I am trying to force users to enter dates in the
format 23/JAN/2003, therefore, I have the setting
below in the validator.xml. The maxlength bit works,
but date parsing does not work,
Thanks Erik, 'would do so.
--- Erik Weber [EMAIL PROTECTED] wrote:
Try datePatternStrict as the var-name instead of
datePattern.
Erik
Research labs wrote:
Hi,
Please help me.
I am trying to force users to enter dates in the
format 23/JAN/2003, therefore, I have the setting
Erik,
I have just tried datePatternStrict; the client side
validator now tells me that 23/Jan/2004 and
23/JAN/2004 are not dates.
Thank you.
Ola.
--- Erik Weber [EMAIL PROTECTED] wrote:
Try datePatternStrict as the var-name instead of
datePattern.
Erik
Research labs wrote:
Hmm, sorry, I don't use client-side form validation. For one, I found
that the scripts generated by the Validator plugin measured 38K, which
is ridiculous.
This is my validation.xml config for a date field that I tried for you:
field property=myDate depends=date
arg0 key=myMessageKey/
var
Thanks for your advice, I will do as you suggested. I
am confident that this will work. However, I am unable
to test it straight away because I have just come
accross another unrelated problem.
Regards.
Ola.
--- Erik Weber [EMAIL PROTECTED] wrote:
Hmm, sorry, I don't use client-side
8 matches
Mail list logo