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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:31:23+00:00 2026-05-28T20:31:23+00:00

I have a GWT two column display. The left column contains a CellTable with

  • 0

I have a GWT two column display. The left column contains a CellTable with a list of users in the application. When the user selects an user from the list, the right column displays the selected users details – which the user can edit.

I have my Activity wired up to use the mayStop() method so that before switching users, the system will attempt to save any unsaved changes the user has made – as long as there are no validation errors.

My question is about the behavior if there are validation errors. I have it wired to ask the user to discard the unsaved edits or return to the page and correct the issues. My problem is that when the user hits cancel (to return and correct the errors), the cell table still “selects” the new user instead of keeping the user that’s in the detail column selected. It appears that switching away from the user activity was canceled, but GWT is still making the CellTable selection. Is there a way to capture the “Cancel” selection, or stop cell table selection from occurring?

  • 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-28T20:31:24+00:00Added an answer on May 28, 2026 at 8:31 pm

    From looking at the source of PlaceController, which triggers the eventual calls to mayStop() and onStop(), two different events are called, one for each. PlaceChangeRequestEvent goes first, indicating (predictably) that a change is being requested, but hasn’t finished yet. This will call mayStop().

    Then, if the user doesn’t elect to cancel the change, PlaceChangeEvent gets fired, which calls onStop(). Otherwise, this will never be called.

    My approach would be to base the actual selection in the left column based on these events. There isn’t a handy way to stop/cancel selection, so there is no nice way to actually manage the selection, and delay it after the user provides their feedback. My thought would be to either

    • Don’t actually select when the user clicks, just effect the place change. Then, when PlaceChangeEvent is fired, actually make the selection. This is slightly gross, as I see no convenient way to cancel selection. Or
    • Keep track of the last selected element after the user changes the selection (as opposed to the place). Listen for the PlaceChangeRequestEvent, and schedule a deferred command to select that original item, and listen for PlaceChangeEvent to skip the body of that command. This should work, since the alert presented to the user is blocking – I haven’t actually tested it though.

    If you are wiring the place changes into the url, you already need a PlaceChangeEvent handler to watch for the user clicking the browser forward/back buttons, so keep that in mind when you decide how to wire this – the place change should drive selection, just like selection needs to drive the place, but if the user clicks back, and cancels the place change, then the celltable should keep its original selection.

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

Sidebar

Related Questions

I have a GWT application that features two frames (com.google.gwt.user.client.ui.Frame). Via Frame.setUrl(...) I can
Why does GWT have two element types? you have com.google.gwt.dom.client.Element & com.google.gwt.user.client.Element - when
I have a Restlet API and a GWT web application in two seperate web
I have a GWT application which I would like to run from within a
I am new to GWT. I have developed a GWT application in version-1.6.4 and
I have an element in GWT. I want it to float right. I have
I have a GWT application and wanna to test load and functionality using a
I have the following code from a GWT Project that is part of the
I have a CellTable with one custom column where I render it manually and
I have gwt web project, which must use application.properties (on client side) loaded as

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.