Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6168939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:46:23+00:00 2026-05-23T22:46:23+00:00

The CellTree has a constructor that takes a TreeModel. I can’t set the tree

  • 0

The CellTree has a constructor that takes a TreeModel. I can’t set the tree model via a setter.

I fetch the data for the tree via an asynchronous rpc call, this call is triggered on creation of the presenter corresponding to the view that holds the tree, but that means the view is also created, without the tree model populated with the necessary data.

When the data does return I set the root node on the model, but the model is already created without a root so it doesn’t get the update…

I’ve gone this route because I want to have better control over the rendering of the tree nodes.

Two possible solutions…

  1. Hold the render of the view until the fetch has come back so that when the tree is created the model has all the information – How do I do this?

  2. Once the data comes back, and is set on the model, tell the tree to update… How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:46:24+00:00Added an answer on May 23, 2026 at 10:46 pm
    1. When you build a view you must setup your CellTree over
      ListDataProvider.
    2. When you get your data throw RPC call you only update ListDataProvider, your CellTree will be updated and re rendered automatically.

    Please read Providing Dynamic Data of Developer’s Guide – Cell Widgets. Heres quick quote:

    ListDataProvider binds your cell widget to a java.util.List. Any changes to the internal list, which can be accessed via getList(), will be reflected in the views. The views are updated at the end of the current event block, so you can make multiple synchronous changes without causing multiple refreshes of the views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the GWT CellTree to display a heterogeneous, hierarchical data model.
I have a CellTree containing a list of organisations. In the Model, each parent
Can somebody explains how to use the GWT cell tree. I am trying to
I'm trying to display a tree of Categories, following the basic CellTree gwt examples.
I have a Celltree inside a ScrollPanel. I set the size of the ScrollPanel
I'd like to make a custom CellTree that would use checkbox based cells (I
I would like to craft a GWT CellTree with an optional pop-up menu triggered
When you click in white space between two nodes, cellTree disappears. Bug is even
I want to fire the open root node event on my current working CellTree,
I have a cell tree with a SingleSelectionModel. When I click on a node,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.