Results 1 to 5 of 5

Thread: TextField setText with null is not right in IE

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-2843 in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Franktown, CO
    Posts
    440

    Default TextField setText with null is not right in IE

    Calling setText(null) results in the text "null" being shown in the widget on IE only, null should display nothing like other browsers.

    -Dave

  2. #2
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Cremona Italy
    Posts
    37

    Default

    Any word on this? I still get this annoying problem and i dont really want to null-check each field.
    Thanks.

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737

    Default

    Thanks for the report! I have opened a bug in our bug tracker. I'm auditing for other locations where this needs to be made consistent, then I'll commit them all together, and update this thread.

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737

    Default

    I'm having a little trouble reproducing this - can you confirm which browsers it occurs in? Can you also create a sample test case that demonstrates the issue?

    It seems like a reasonable fix, but I'd like to have tests to verify that this issue doesnt creep back in some other way. Here is the sample I've been working with so far:

    Code:
    public class Test implements EntryPoint {
    
    
      public void onModuleLoad() {
        TextField textField = new TextField();
        IntegerField integerField = new IntegerField();
        SimpleComboBox<String> simpleComboBox = new SimpleComboBox<String>(new StringLabelProvider<String>());
        DateField dateField = new DateField();
    
    
        textField.setText(null);
        integerField.setText(null);
        simpleComboBox.setText(null);
        dateField.setText(null);
        
        RootPanel.get().add(new FieldLabel(textField, "TextField"));
        RootPanel.get().add(new FieldLabel(integerField, "IntegerField"));
        RootPanel.get().add(new FieldLabel(simpleComboBox, "SimpleComboBox"));
        RootPanel.get().add(new FieldLabel(dateField, "DateField"));
      }
    }
    Tested in IE6, 7, and 8.

  5. #5
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737

    Default

    The remaining detail was that the fields must have setText called on them after being rendered - the bug doesn't manifest otherwise.

    For faster bug fixes, please provide complete test cases - with the information given, it appeared that this wasn't reproducible.

    This has been fixed in SVN and the latest nightly build, and will be available in the next release.

Posting Permissions

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