I am using MDoubleBox widgets in my mgwt application, but have problems initializing values using the setValue method (applies also for setText).
Any Doubles which internally are parsed into containing Grouping or Decimal separators (ie containing a decimal or greater than 999) fails when provided as parameter giving an empty value. The corresponding gwt DoubleBox works ok. I am currently running this on a non-default Locale, but the same result occurs for the US locale, as well.
I could use MTextBox as a workaround, if there was a way to force the Numeric keyboard appearing for users entering input for these fields. Is there?
Anything I have missed regarding the MDoubleBox usage?
.ui.xml:
<mgwt:input.MDoubleBox ui:field="field1"/>
<gwt:DoubleBox ui:field="field2"/>
code:
@UiField MDoubleBox field1;
@UiField DoubleBox field2;
field1.setValue(1234.56);
field2.setValue(1234.56);
Output:
<blank>
1,234.56