How to restrict user to enter only two digits for Integer Field in gxt/gwt -


i want restricted user not enter more 2 digits inetger field in gxt

setting maxlength attribute of dom input text element possible, use things comes gxt:

numberfield<integer> nf = new numberfield<integer>(new integerpropertyeditor()); nf.addvalidator(new maxnumbervalidator<integer>(99)); 

any number greater 99 marked error.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -