1. #1
    Ext GWT Premium Member
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    svenRP is on a distinguished road

      0  

    Default GXT 2.2.1: TextField setMaxLength doesn't work with %

    GXT 2.2.1: TextField setMaxLength doesn't work with %


    To limit the length of a text field we use the Method setMaxLength(int maxLength).
    It works fine with normal letters or numbers.

    But if you enter a % to the last position, the limit of the TextField lifted and you can enter more characters.

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    223
    Vote Rating
    2
    gishmo is on a distinguished road

      0  

    Default


    Why do you need a max length in %?

  3. #3
    Ext GWT Premium Member
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    svenRP is on a distinguished road

      0  

    Default


    Maybe I expressed myself wrong.

    There is a text field with a maximum length of 10 characters.

    After entering 'abc1234abc' no another character can be entered. It is correct.

    After entering 'abc1234ab%' unlimited additional characters can be entered, which should not be.

    This makes it possible in a text field with a maximum length of 10 characters enter the following text:
    'abc1234ab%%dojieolk' -> This is not correct.

  4. #4
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    223
    Vote Rating
    2
    gishmo is on a distinguished road

      0  

    Default


    Well, this sounds like a bug. Did you check this behavior with 2.2.5?

  5. #5
    Ext GWT Premium Member
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    svenRP is on a distinguished road

      0  

    Default


    It is almost the same.
    After enter the maximum length of the Field you can continue with the character %.

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,717
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Thanks for reporting this. I will move this thread to the correct bug forum so it can be looked at.