Results 1 to 10 of 15

Thread: Setting max length on TextField

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Superior, CO
    Vote Rating

    Question Answered: Setting max length on TextField

    Is there really no way to set the max length on a text field? I know I can use a max length validator but that doesn't prevent the user from entering more characters than is "allowed."

    There was a setMaxLength(...) in 2.x on the TextField object. Why was it pulled in favor of a validator?

  2. There is a way to set max length on a passes the test to me.
    like this:

    public class MyTextField extends TextField {

    public MyTextField(){
    InputElement ie=this.getInputEl().cast();


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts