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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:41:25+00:00 2026-05-27T01:41:25+00:00

I have a cell tree with a SingleSelectionModel. When I click on a node,

  • 0

I have a cell tree with a SingleSelectionModel. When I click on a node, it fires an certain action. My problem is that the action is fired only on the first click.

public class TreeModel implements TreeViewModel {

private SingleSelectionModel<Entity> selectionModel;


public TreeModel(){
    initialize();
}


private void initialize(){
    selectionModel = new SingleSelectionModel<Entity>();
    selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
        public void onSelectionChange(SelectionChangeEvent event) {     
            //fire an action                    
        }
    });
}
    public <T> NodeInfo<?> getNodeInfo(T value) {
     ...
     }

The CellTree is called normaly

CellTree.Resources resource = GWT.create(TreeResources.class);
cellTree = new CellTree(new TreeModel(), null,resource);
panel.add(cellTree);

Any clue why it does that ?
Thanks

  • 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-27T01:41:25+00:00Added an answer on May 27, 2026 at 1:41 am

    You mean clicking on the already-selected node? Well, in this case, you’re not changing the selection, so there’s no SelectionChangeEvent.

    Maybe you’re looking for the NoSelectionModel, or for something else than a SelectionModel (e.g. a Cell that responds to click events, or a CellPreviewHandler)

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

Sidebar

Related Questions

I have a Cell that handles both click and dblclick. One behaviour for click,
I have a cell that I am inserting to the top of a UITableView.
I have a UITableView cell that is going to have a variable size depending
I have a situation where i need to implement a custom tree cell renderer.
I've got a custom tree cell renderer that I'm using to render custom icons
I have a cell in Excel that I want to format differently based on
I have a third party tree package (ElXTree by LMD Innovative) that I am
I have a cell in a spreadsheet that is a date object in Excel
I need to have several, separately editable cells for a tree node. A TreeTable
I am having a problem with an autoloading tree grid. At present I have

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.