The solution was obvious -- once Geert led me to my own mistake :) Dates are not simple types, they need to have a formatter in the metadata class. The jscalendar widget was indeed sending the right data, I just hadn't told Rife what to do with. it.

There is a thread on the mailing list about reading date in the context of CRUD Table creation but wether you're using CRUD or writing your own forms, it's the same issue. See http://tinyurl.com/ 2e9cet (or search for SimpleDateFormat in the list archives) which gives the solution.

One thing to be aware of if using jscalendar to input your dates is that you have to have it return dates that match the format you specify in the metadata class.


David

On Jan 25, 2007, at 12:15 AM, David HM Spector wrote:

Has anyone used jscalendar (www.dynarch.com) with Rife forms? Another JS widget, TinyMCE, works perfectly for allowing me to create text/html editing panes; with jscalendar the date selector works, dates show up on the HTML form, but don't make it back into the bean data after the submit (but other items including data from TinyMCE do). Its not clear to me if there's something wrong with the jscalendar itself (not clear since it IS putting dates into fields that are visible on the form) or if Rife doesn't know what to do with the data when it comes back and is failing silently... ) Is there a correct date format that must be used on forms in order for a Date field to get set correctly?


_DHMS
---------------------------------------------------------------------- ---------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

------------------------------------------------------------------------ -------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/ voice: +1 631.261.5013 fax: +1 212.656.1443
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to