Grails Date Property Editor
Posted
by Jan
on Stack Overflow
See other posts from Stack Overflow
or by Jan
Published on 2010-04-18T14:47:10Z
Indexed on
2010/04/18
14:53 UTC
Read the original article
Hit count: 439
Hey folks,
i'm using the jQuery UI datepicker instead of the <g:datePicker>
, which is changing the selected date in a textbox. Now I want to save this neatly back into my database, and came across custom property editors. click me hard to see the topic on StackOverflow
However, adding this custom PropertyEditor didn't change anything, dates are still displayed like '2010-01-01 00:00:00.0' and if I try to save a date it crashes with Cannot cast object '05.05.2010' with class 'java.lang.String' to class 'java.util.Date'
.
Is there any additional magic needed, like a special naming of the textbox or something like that?
Thanks for your help, Jan
© Stack Overflow or respective owner