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 5928203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:15:56+00:00 2026-05-22T14:15:56+00:00

I am trying to build a Tree Structure in GWT which gets to be

  • 0

I am trying to build a Tree Structure in GWT which gets to be scrollable when the number of items are large, the Tree structure will permanently reside on the WestRegion of my Application DockLayout Panel.

The Main code:

<!-- The west side has a panel with complex dynamic tree list to be implemented -->
    <g:west size='14'>
        <app:Mainlist ui:field='mainlist'/>
    </g:west>

The Mainlist:

  <g:VerticalPanel>
    <g:ScrollPanel>
        <g:HTMLPanel width='100%' >
            <div class='{style.contentColumn}'>
                <g:Tree ui:field='citytree'>
                    <g:TreeItem text='Delhi/NCR'/>
            </g:Tree>   
            </div>
        </g:HTMLPanel>
    </g:ScrollPanel>
  </g:VerticalPanel> 
</ui:UiBinder> 

However I dont see anything in the west region. Can anyone point out what am I doing wrong?

Moreover:
In the corresponding “Mainlist.java” file I cannot say @UiField Tree citytree(Gives Exception) . This seems to be because of the nesting involved. How do I access my Tree instance?

The GWT showcase has Tree built without using UiBinder. Moreover I could not find any sample code to build a Tree structure with UiBinder. Any resources?

  • 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-22T14:15:57+00:00Added an answer on May 22, 2026 at 2:15 pm

    After searching and exploring more. I did it. I think theere is no example code online so this post might be helpfull for learners like me.

    <ui:with field='res' type='myth.social.zomato.client.Mainlist.Images' />
    
        <ui:style src="resources/GlobalStyles.css">
    
    
    
        </ui:style> 
    
            <g:Tree ui:field='tree' resources='{res}'>
                <g:TreeItem text='Cities' >
                    <g:TreeItem text='Ahemadabad'/>
                    <g:TreeItem text='Banglore'/>
                    <g:TreeItem text='Chennai' />
                    <g:TreeItem text='Delhi/NCR' />
                    <g:TreeItem text='Hyderabad' />
                    <g:TreeItem text='Jaipur' />
                    <g:TreeItem text='Kolkata'/>
                    <g:TreeItem text='Mumbai'/>
                    <g:TreeItem text='Pune' />
                </g:TreeItem>
    
                <g:TreeItem text='SalesPerson'>
                    <g:TreeItem text='Sales1' />
                    <g:TreeItem text='Sales2' />
                </g:TreeItem>       
    
            </g:Tree>   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build a Quadtree data structure(or let's just say a tree)
I'm trying to build a binary classification decision tree out of huge (i.e. which
I am trying to build a tree structure that represents a parsed configuration file
I'm trying to build an expression tree ( still ) but getting further! I
I'm trying build a method which returns the shortest path from one node to
I am trying to create a tree structure with graphviz. I am open to
Im trying to build a kd-tree for searching through a set of points, but
I'm trying to build a DOM tree from a xmlTextReaderPtr . In my final
I am trying to build a directory tree such as how xml trees are
I'm trying to build a TreeView in WPF that has categories. Basically the structure

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.