I want to allow user to provide maximum of 2 character in TextField. So I'm defining the property as
TextField tf=new Textfield(); tf.setMaxLength(2); But when I'm clicking on reset button which performs "tf.reset()" after that the max length property is disappearing. That means user is being able to enter more than 2 character. Please let me know how to solve the problem. Any kind of help is appreciated.