I'm not familiar with GWT but doesn't it have a number-only-textbox or something similar? You can always use Integer.parseInt()
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.