Changing the locale on the datefield prevents it from opening. A bug?
My little code sample:
DateField startField = new DateField("Start:");
startField.setResolution(DateField.RESOLUTION_HOUR);
startField.setLocale(new Locale("no"));
startField.setValue(new Date());
myVerticalLayout.addComponent(startField);
When I click the little icon nothing happens exept for the Javascript error appearing in Firebug which states “uncaught exception: java.lang.ClassCastException”
See attached image how the datefield looks with the Norwegian locale. However many locales share same behavior.
If I change that locale to Locale(“en”) there are no problems.
I have tested this on both FF and Opera on an Ubuntu.
NB: you should test the date input components appearing in your Sampler with Opera. It crashes the whole browser!