Changed the database structure to integer and it works fine (tapestry validates if when I entered any letters other than numbers), but my expectations is even when I typed alpha letters in the keyboard it should give only numbers in the text box is that possible?
Also after I changed my database structure for phonenumber to integer now without watermark it constantly shows 0 in the text box and when I entered some value it gives me a wrong output? tml page <tr> <td><label t:type="Label" for="phonenumber" class="signup_label"/><sup style="color:#FC0213;"> *</sup></td> <td><input t:type="TextField" t:id="phonenumber" t:value="phonenumber" t:label="Phone Number" t:validate="required,maxlength=10" class="signup_input" /></td> </tr> java page private int phonenumber; public int getPhonenumber() { return phonenumber; } public void setPhonenumber(int phonenumber) { this.phonenumber = phonenumber; } see the attached image http://tapestry.1045711.n5.nabble.com/file/n5474714/test.png -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-restrict-users-only-to-enter-numeric-values-in-text-field-tp5472151p5474714.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org