cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Brosich <>
Subject Date validation in cforms
Date Tue, 21 Nov 2006 08:29:10 GMT


I have a date field  that must not contain a value lower than the 
current date.
I tried the following validation:

<fd:range min="Date()" max="Date(2021,12,31)" />

but cocoon responds:

org.outerj.expression.ExpressionException: Date function requires 3 
argument(s) at line 0, column 0

What's wrong? Both Javascript and Java Date class have Date() 
constructor (without parameters). So, isn't javascript code that I put 
in min or max attributes?

Thanks in advance

Alberto Brosich

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message