PDA

View Full Version : [SOLVED] Help, NumberField gives zero no matter user entry ??



chalu
26 Jul 2010, 8:53 AM
I recently upgraded my app to the latest GXT 2.2.0 Beta and noticed that my number field no longer works well, it gives zero (0) no matter what I enter as a value, here is the snippet :


NumberField installments = new NumberField();
installments.setAllowBlank(false);
installments.setAllowDecimals(false);
installments.setAllowNegative(false);
installments.setName("installmentlimit");
installments.setFieldLabel("Max. Installments");


Just as it should be right, however I never seem to get whatever is entered, please help with this.

sven
26 Jul 2010, 8:58 AM
Works fine for me.

Can you please post some fully working testcase that implements EntryPoint?

chalu
27 Jul 2010, 12:29 AM
The issue was because I did not call setPropertyEditorType(Integer.class); on the number field object