Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    bigmuzzy is on a distinguished road

      0  

    Question Calculation of the textLength in a TextArea

    Calculation of the textLength in a TextArea


    Hi,

    the length of a value in a TextArea is calculated differently for IE and FF, so that the validation for the maxLength of the TextArea does not work correctly.

    You can try it for the following Text (set the maxLenght property of the TextArea to 11):

    Text1
    Text2

    The returned value in IE is Text1\r\nText2. The FF gives Text1\nText2 as value. So the textLength in IE is 12 and in FF 11, i.e. the TextArea in FF is valid and in IE is not.

    Is there any way to fix this?
    Thanks,
    Vlad

    System:
    Win7
    IE8
    FF10
    GXT 2.2.5

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Thumbs up Best Solution

    Best Solution


    if I were you I will override validateValue method like following:

    Code:
                    TextArea  taAddress = new TextArea() {
    			@Override
    			protected boolean validateValue( String value)
    			{
    				boolean result = super.validateValue( value );
    				if ( !result ) {
    					return false;
    				}
    
    
    				// your solution comes here
    				// if you want to omit /r/n
    
    
    				return true;
    			}
    		};
    Website: harunates.com
    Blog: blog.harunates.com
    Feel free to contact me harun@harunates.com

  3. #3
    Ext GWT Premium Member
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    bigmuzzy is on a distinguished road

      0  

    Default


    Of course I can override the validateValue() method. But in this case it is not so elegant. Different systems and Browsers handle line break differently. So details should be counted in my implementation.

    What does the development team suggest for this? Is it possible to fix this on the GXT side?

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar