PDA

View Full Version : Numberfield not accepting input



jeroen_b
5 Aug 2010, 1:49 AM
Hi all,

I'm new to GXT. I'm having difficulties with the NumberField.

It wont accept any input, I can't type into the field


Code Snippet:


FormPanel formPanel = new FormPanel();
formPanel.setLayout(new FormLayout());

numberField numberField = new NumberField();
numberField.setFieldLabel("Number");
formPanel.add(numberField);

verticalPanel.add(formPanel);


I've tried setting adding this line, but it doesn't resolve the issue:


numberField.setBaseChars("0123456789");


I'm on Mac:
JDK: 1.6.0_20
GWT: 2.1.0M1
GXT: 2.1.1
Browser: Firefox 3.5.11


Any ideas what I'm doing wrong?

jeroen_b
5 Aug 2010, 4:48 AM
GWT: 2.1.0M1


Apparently GWT 2.1.0M1 breaks the NumberField input. When I changed to GWT 2.0.3 the issue was resolved.

sven
5 Aug 2010, 4:53 AM
This is due to a braking change in the keyhandling in GWT 2.1