Hi Gill,
can you please include your full stack trace and the source code of
that bean?
Thanks,
Geert
On 22 Aug 2006, at 14:58, Gill, Huibert wrote:
Hello,
I got a problem using Validation with Dateformat and the
generateForm() in my Element.
I have a simple Bean with som text, number and a date fields.
If the submitted Bean is not Valid, I will generate the errors, and
the Markers in the Template.
Then a generataForm() is called to regenerate the form.
This works pretty well for all Fields, except for Datefields.
If I submit a wrongly formated Date (or a bogus word) the method
call for generateForm() throws an Exception "Cannot format given
Object as a Date"
Funny thing is that if a submit a word in a number field, the error
markings are generated correctly, and the generateForm() does not
throw an exception.
My problem here is, that if I submit a wrong date, all other form
info (hidden fields, select boxes) are not generated either.
Is there a way to set the "wrong" Date to a NULL value or something
similar?
Mit freundlichen Grüßen / With kind regards
Huibert Gill
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users