Sadly, that won't work. As soon as you hit tab, Dojo's code tried to
parse the date, and if it fails, gives you 31 dec 1969.
After extensive trial and error (and no thanks to the poor Dojo
documentation), I was able to get it to work by overriding the
onInputChange method of the control to call my date parser first,
then the old one.
Norman Franke
www.myasd.com
On Sep 6, 2007, at 2:13 AM, Igor Drobiazko wrote:
You can use the parameter "translator".
On 9/5/07, Norman Franke <[EMAIL PROTECTED]> wrote:
I'm attempting to convert my application from Tapestry 4.0.2 to 4.1.2
and I've run into a problem with the DropdownDatePicker component.
Previously, I used a dojo version and then used an onFocus event to
parse the data field as needed. This allowed me to take dates in
almost any format, including "3/13" or "3/13/07" or "31 jul 07", etc.
This worked rather well.
How can this be done in using the DropdownDatePicker in 4.1.2? I
tried adding a dojo onValueChanged, but it gets the value after it
was parsed (typically ending up "12/31/1969". No javascript events
are called on the DropdownDatePicker itself, e.g. onChange or onBlur,
since the control ends up as a <div> block that Tapestry then does
some magic with behind the scenes.
Any ideas?
Norman
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]