Commons Validator's JavaScript only support day/month/year validation.

Niall

On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
Hello all,

Well I am trying to validate a field on the clients side. The field schould be validatet as a date in this 
format: "dd.MM.yyyy HH:mm" but I saw that the time would not be considerd, although I initialize 
datePattern in validation.xml with this value "dd.MM.yyyy HH:mm", the date will be validated 
against "dd.MM.yyyy". below is my formset in validation.xml:

<formset>
       <form name="REPORTform">
               <field property="datumVonLaufzeiten" depends="date">
               <arg position="0"  key="REPORTform.datumVonLaufzeiten"/>
       <var><var-name>datePattern</var-name><var-value>dd.MM.yyyy 
HH:mm</var-value></var>
               </field>
               <field property="datumBisLaufzeiten" depends="date">
               <arg position="0" key="REPORTform.datumBisLaufzeiten"/>
       <var><var-name>datePattern</var-name><var-value>dd.MM.yyyy 
HH:mm</var-value></var>
               </field>
       </form>
</formset>

I had a look at the validateDate.js in commons-validator.jar and I think it 
would not do that, what I want. Has anybody an Idea what am I doing wront, or 
do I have to do different.

Thank you in advance for your help,
Halgurt



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to