Hi Alberto, In order to call the constructor of the Date class you'll have to prepend the attribute statements with the "new" keyword.
<fd:range min="new Date()" max="new Date(2021,12,31)" /> regards, Arthur Bogaart > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
