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

      0  

    Default [FIXED] GXT 2.0 m3: TreeGrid node collapse NullPointerException

    [FIXED] GXT 2.0 m3: TreeGrid node collapse NullPointerException


    Host mode GXT 2.0 m3

    If you expand TridGree node and add an item to it, the node fails to close again.

    If you press the button before expanding node - works as expected.
    If you expand the node first and the press the button you can't collapse it anymore due to NullPointerException at TreeGrid$TreeNode.access$0(TreeGrid.java:56)

    TreePanel works correctly in this scenario.

    Quick test for the problem: (modify TreeGridExample.java to add a button)

    Code:
        ...
        cp.add(tree);
        Button addDataButton = new Button();
        addDataButton.setText("Add a node");
        addDataButton.addSelectionListener(new SelectionListener<ButtonEvent>(){
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                List<ModelData> rootItems = store.getRootItems();
                ModelData firstRoot = rootItems.get(0);
                Music test = new Music("A song that causes trouble", "Test", "Tester");
                store.add(firstRoot, test, false);
            }});
        add(addDataButton);
        add(cp);  
      }  
    }
    Last edited by darrellmeyer; 23 Jun 2009 at 1:29 PM. Reason: Forgot to add version number and mode

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Thanks for the sample code. This is fixed in SVN.

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