I fixed it by subclassing DateField and overwriting "_onDateFieldChange" to only fire the changeValue event if the date is not null. The default behavior is ok with normal textfields, but with a datefield I think it is wrong.
I also overwrote _onChangeDate to not change my time to 12:00 when changing the date via the popup. cheers, Michael On 08.04.2014 09:41, Micha wrote: > Hi, > > I have such a datefield and after entering a wrong date and pressing > 'enter' to move the focus to the next widget the datefield is emptied. > > I would like to handle the case a wrong date (50.20.2000) is entered. > How to do it? > > I attached a focusout event, but at that time the text is allready cleared. > > My datevalidator function gets called with the empty date. > > Thanks for answering, > Michael ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel