-
Sencha User
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.
-
Ext GWT Premium Member
Why do you need a max length in %?
-
Sencha User
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.
-
Ext GWT Premium Member
Well, this sounds like a bug. Did you check this behavior with 2.2.5?
-
Sencha User
It is almost the same.
After enter the maximum length of the Field you can continue with the character %.
-
Thanks for reporting this. I will move this thread to the correct bug forum so it can be looked at.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules