PDA

View Full Version : DateField not picking a date from its header menu



blay
27 Dec 2010, 4:26 AM
Hello:

I have this method:


public static DateField createDateStart(){

DateField dateField = new DateField();
dateField.getPropertyEditor().setFormat(
DateTimeFormat.getFormat("dd/MM/y"));

dateField.setFieldLabel(messages.dateStartLbl());
dateField.setLabelSeparator("");
return dateField;
}

The DateField created works fine except when you click on the header menu (just between the arrows for next and previous month), so a menu appears with all months and some years, You can select any combination but when you click ok, nothing happens, I mean, no date is loaded into the dateField box.
Any idea?

sven
27 Dec 2010, 4:33 AM
http://www.sencha.com/examples/explorer.html#datepicker

Works fine for me on that page.

blay
27 Dec 2010, 4:45 AM
In fact, comparing that DateField from mine, mine doesn´t show the month and year on the header (just a blank box). Then if you click (and the months and years appear) the right month and year are selected, but changing that selection and clicking ok does nothing...
I´ve been checking any posible mistakes and I don´t find what happens...

sven
27 Dec 2010, 4:49 AM
Can you please post a fully working testcase that implements EntryPoint and shows your problem?