HZNM.COM
welcome to my space
X
Search:  
 HOME   TreeStore loading exception
TreeStore loading exception
Published by: cfz 2009-01-09
Welcome to:hznm.com

  • The navigation tree on my application ran fine under GXT 1.0 RC1. After updating to GXT 1.0 and making necessary changes to the code such as using getModel() instead of getData(), using Container.add(Widget, LayoutData) instead of setData(layoutData), the navigation tree now shows up only partially, and a NullPointerException is raised in TreeStore.onLoadException(). One thing I noticed was each time the application is started, the navigation tree is shown partially at different part of the tree before the exception is raised. It looks like there is a race condition in loading the tree. ???



    Thanks,


  • I tracked the code down to where it caused the problems but don't understand why. After building the tree, the code loops through the tree items to set the ids. The ids were written out with unique ids. But this setting of the items' ids causes the tree not being displayed right. If I commented out this code for setting the ids then the tree is displayed fine. ???
    [pygtk] gtk.TreeModelRowIter.next::
    When there are no more rows left the StopIteration exception is raised. Johan It was a Treestore, but a ListStore is all that was needed.
    http://www.daa.com.au/pipermail/pygtk/2006-May/012283.html
    HOME
    PHP GTK2 Beginners::
    Loading Windows DLLs. 2. dragon001. 2274. Wed Feb 14, 2007 1:57 am. dragon001 Exception? 1. beidlerj. 1547. Thu Sep 14, 2006 11:19 pm. scott. any example
    http://gnope.org/forum/topic-1-0-50.html
    HOME

    ----------
    TreeBuilder.buildTree(tree, root);


    for (TreeItem treeItem : tree.getAllItems()) {
    String id = null;
    comp.lang.python::
    What happens to a thread with an unhandled exception?, Frank Millman to create a recursive function over a pyGTK treeStore, Bruno Desthuilliers
    http://coding.derkeiler.com/Archive/Python/comp.lang.python/2007-06/
    HOME
    if (treeItem.getText() != null) {
    id = treeItem.getText().replace(' ', '_') + "id";
    treeItem.setId(id);
    GWT.log("Tree item id = " + treeItem.getId(), null);
    }


  • Still the same problems with 1.0.1. I like to post some code but it would be difficult because it involves a lot of code and don't know exactly where the problems lie. Besides the code is proprietary.


  • In most situations you should never need to call getModel(). What are you using it for? Also, when creating test code, you do not have to use your actual application code. You can create some simple test code that illustrates how you are using the tree. Without test code it is not really possible for me to provide more assistance with just the information I have.


  • You should not change the tree items id after it has been added to a tree (tree keeps a map of ids to item). If you want to set the id, create your own tree builder that sets the ids when the tree items are created.


  • Can you try your code with 1.0.1 (just released) or from SVN? There was a bug in TreeBinder that was fixed that I am pretty sure is related to your issue. If you still have problems, then post some sample code.


  • I'll make the changes about setting the ids. Thanks.

    You mentioned that "In most situations you should never need to call getModel()."
    We used getData() without the key to get data from the data model. With GXT 1.0, getData() is deprecated so we have to change it. I saw another post that someone used getModel() to fix this problem. I changed to getModel() and it seems to work fine. Is this the right solution or should I call something else?





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's TreeStore loading exception, click hznm.com to home
  • new ideas in bedding sets
  • new ideas in sports bedding for kids
  • new concepts in childrens bedding
  • asset based finance dependable finances offered with feasible terms
  • get desired success with bookkeeping help
  • no credit check cash advance loans help you get access to instant cash
  • 5 simple ways to check a used car
  • helpful information for a latino wedding
  • sail away with exotic tropical bedding
  • top 7 tips to get a job promotion
  • poor credit auto loans make commuting comfortable affair
  • is buying a used car a good idea
  • “just three little words but become tons of loads to speak out”
  • call termination services some basic facts
  •  
  • soothe your stiff back with auto back support
  • saddle up with equestrian motif bedding
  • get actual financial freedom with unsecured debt consolidation loans
  • score big with soccer bedding
  • getting creative with custom bedding
  • avail substantial money with secured loans for bad credit
  • are strategic alliances quot black holes quot or lightening rods for business innovation
  • buying warranty for used cars
  • it is easy to get convenient and secured loans for homeowners
  • easy unsecured loans collateral free tension free life ahead
  • general home loans information
  • the ridiculousness of christs resurrection
  • estimating a used car’s value
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ