Q:

Numerical keyboard in GWT

I want to trigger numeric keyboard in some TextBox elements in GWT,
someone have any exapmle for this
Thanks.

A:

There's currently no widget that does this for you, but you can easily do it with a TextBox widget:

TextBox numberbox = new TextBox();
numberbox.getElement().setPropertyString("type", "number");

Or of course if you're not using widgets but HTML snippets directly, e.g. in an HTMLPanel in UiBinder:

<input type="number" />

