On 06/08/07, Tobias Kremer <[EMAIL PROTECTED]> wrote: > > Thanks very much. I gave it a spin and it already looks pretty good. Here's > > some quick feedback. > > Some more feedback: > > I just realized that invalid dates (e.g. February, 31st) do not trigger an > error > message yet. Furthermore the Required Constraint doesn't work on date > Elements. > It seems to always fail making it impossible to submit the form even with a > valid date.
How were you testing this? The file "t/elements/date.t" tests the Required constraint on a date element - it seems to work ok. I also found that the program died if an invalid date such as 29/2/2007 were entered - this is now fixed with an eval{} inside Element/date::process(). In this case, date::process() will set the date value to be the strftime() value - such as '%d-%m-%Y' - to ensure that there's a true value to satisfy any Required constraint, and to further ensure the DateTime inflator will return an error. Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu