cocoon-users mailing list archives

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

Hi,

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message