On Tue, 09 Jul 2013 17:31:13 +0200
thron7 <[email protected]> wrote:
>
> Well enough :-). Why don't you share it?! (Answering one's own questions
> is not considered bad style on this list ;).
>
hmm, yes, I would like to do it, but... it doesn't work :-)
So again: I have form with a DateField().
My model has the date stored as Unix timestamp as a string .
I add a converter with:
controller.addBindingOptions("ts",
{
converter: function(d)
{
if (d == null || d instanceof Date) {
return d;
}
return new Date(d*1);
}},
{
converter: function(d) {
return dateformat.format(d);
}});
// dateformat is DateFormat("dd.MM.YYYY", "de_DE")
I can see in the debugger, that my timestamp is converted to the right Date,
but the field in the form isn't updated and stays empty.
I don't know why the date doesn't show up in the form...
Michael
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel