I'm doing almost the same thing, except I remove the item from the
left table and add it to the right one.  I need to let the user click
on an item in either table, then clear the selection from the table
other than the one that was clicked.  If you go back and forth,
selecting the same item from each table, instead of seeing the blue
selection, I see yellow.  I verified with breakpoints that the item is
not being selected.

This bug has been there since CellTables came out and I do not see a
method for de-selecting items from the list.  There was another bug
that I reported with CellTables that was fixed in version gwt v2.2.0.
Too bad I forgot to mention this problem earlier.


On Mar 6, 11:44 am, Josh K <[email protected]> wrote:
> I've got a layout with 2 cell tables in 2 different composites and you
> use a menubar to switch between them. Each table has different rows
> and the rows "move" between the tables by changing items in a
> selection cell.
>
> On one page, you assign a ride to a car by picking a car number out of
> a selection cell, on the other page you move the ride back by
> unassigning it.
>
> My problem is after I pick a car for a ride, I make an asynchronous
> call and update the database, remove the ride from the list backing
> the celltable, and refresh the celltable. The ride moves to the next
> page.
>
> If I go to that next page where it has appeared and unassign it, the
> same behavior happens (set ride to unassigned, make a call, remove
> from list, redraw table)
>
> When I go back to the first page to assign the car, instead of having
> a blank (for unassigned), the selection cell has the value I first
> selected! It's like it remembered it for some reason?
>
> I'm finding this really weird because the database is updated and the
> data I'm getting back is correct and if I refresh the application, the
> selection cell has the correct information.
>
> Is there something I need to be doing? Like clearing the selection
> cell after selection? I just don't get why the cell isn't cleared!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to