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

  • Home
  • SEARCH
  • 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 7167777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:38:44+00:00 2026-05-28T14:38:44+00:00

I have a celltable in GWT which have checkboxes, to select multiple checkboxes i

  • 0

I have a celltable in GWT which have checkboxes, to select multiple checkboxes i am using selectionModel,once I check any checkbox its values get saved in the selectionModel,but then when i uncheck the checkbox , they never get remove , i want to remove the previous selection , how can it be possible

below is the code

        List<Categories> selected;


        display.getListWidget().getSelectionModel().addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
        public void onSelectionChange(SelectionChangeEvent event) {

            selected = new ArrayList<Categories>(
                    ((MultiSelectionModel<Categories>) display.getListWidget().getSelectionModel()).getSelectedSet());

        }
    });

What i am trying to do is

        display.getListWidget().getSelectionModel().setSelected(categories, false);

but its not working , coz i guess categories is not the one which is already added ..

Any Suggestions

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-28T14:38:45+00:00Added an answer on May 28, 2026 at 2:38 pm

    If you could clarify your question with some more code or by being more specific, we might be able to give a better answer. From your question, I’m guessing that your Categories equals and hashcode are not overwritten in a way that the “categories” you are trying to set is being found.

    I’m guessing a bit here but I think a KeyProvider will help you deselect the correct Categories object.

    view:

    SelectionModel<Categories> selectionModel;
    
    ProvidesKey<Categories> keyProvider = new ProvidesKey<Categories>() {
        public Object getKey(Categories categories) {
          return item == null ? null : categories.id() // or some unique identifier
        }
    };
    
    CellTable cellTable = new CellTable<Categories>(keyProvider);
    
    // Omitted..Add columns..
    
    selectionModel = new MultiSelectionModel<Categories>(keyProvider);
    cellTable.setSelectionModel(selectionModel);
    

    presenter:

    List<Categories> selected;
    
    display.getListWidget().getSelectionMode().addSelectionChangeHandler(
        new SelectionChangeHandler() {
          public void onSelectionChange() {
            MultiSelectionModel selectionModel = 
                (MultiSelectionModel) display.getListWidget().getSelectionModel();
            selected = Lists.newArrayList(selectionModel.getSelectedSet());
          }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GWT CellTable<MyType> . This table have rows which should display a
I have a rather peculiar problem. I am using CellTable from GWT 2.2 release.
I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring
Have just started using Visual Studio Professional's built-in unit testing features, which as I
i have a celltable in GWT, I can change color of a specific column
I have a Gwt celltable. Clicking on the headers sorts the columns properly. But
I have a tableview which is being reloaded as new content is added, using
We are using the GWT-Presenter framework and attempting to use CellTable to put together
I have a celltable which contains numbers in each column. Is there a way
I have a little piece of code which populates a CellTable from a Type

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.