Solution for Numeric Text Field in GWT
Posted
by Ashwin Prabhu
on Stack Overflow
See other posts from Stack Overflow
or by Ashwin Prabhu
Published on 2010-05-19T12:57:57Z
Indexed on
2010/05/26
7:41 UTC
Read the original article
Hit count: 555
I need a text field very similar in behavior to Gxt's NumberField. Unfortunately I am not using Gxt in my application and GWT 2.0 does not have a Numeric text field implementation as yet.
So that currently leaves me with an option to simulate a NumberField by filtering out non-numeric keystrokes using a keyboardHandler.
Is this the the best way to approach the problem? Does anyone here have a better solution/approach in mind?
Thanks in advance :)
© Stack Overflow or respective owner