ok that is fixed.
But i will give up currently on the YUI Calendar because it really doesn't
play nice for me
with Localization and my own dateformats.
The calendar should work 2 way (if i change the input field itself and then
popup the calendar that change should be noticed)
that is what i pretty much have working now for the English locale the big
problem is the how to do that with YUI?
Its impossible it seems because you can't call a simple method or set a
property where you set the dateformat.
If i read this correctly:
http://developer.yahoo.com/yui/examples/calendar/germany/1.html

then it seems you can only configure this by setting all kinds of
properties, this is horrible because then we have to
parse the format complete and set those properties based on what we find.
(and translate it all!)

It is such a shame that this kind of calendar is again in LGPL:
http://www.dhtmlgoodies.com/scripts/js_calendar/js_calendar.html

Looking quickly at the code is exactly what i want:

displayCalendar(document.forms[0].theDate,'yyyy/mm/dd',this)


you set the dateformat directly in the displayCalendar call.. Thats how it
supposed to work

Also what sucks a bit for the YUI calendar is that it is very hard to switch
quickly over the years.
(what if i use it for a birthday selection that can be something between
1960 and 1990, that horrible in that calendar)

So i guess i have to use the old calendar we had, that was much better
suited for us but if anybody
knows a calendar like the one above that is not (L)GPL but a apache
compatible one please let me know.

johan


On 3/27/07, Johan Compagner <[EMAIL PROTECTED]> wrote:

ahh i will fix it.


On 3/27/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> Not sure when it got introduced, but when the date picker works on an
> empty text field (ie the coupled date input field works has a null
> model value), it freaks out with a NaN. To test, simply set
> dateProperty of FormIputModel to null and fire up FormInput.
>
> I'd appreciate it if someone could take a look, as I need to go right
> now, and Europe is about to wake up :)
>
> Cheers,
>
> Eelco
>


Reply via email to