Datefield locale trouble

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!
11435.png

Definitely sound like a bug. You should report it along with the testcase and image to
dev.vaadin.com/newticket
.

Hi,

I created a ticket about this issue.

http://dev.vaadin.com/ticket/5659

We have refactored quite a lot of the client side implementation lately. Hopefully it will finally stabilize.

cheers,
matti