My fault, my custom cell implementation was a copy-paste from the contacts 
demo. I commented out the closing <table> tag which was messing things up.

On Tuesday, 4 September 2012 18:44:44 UTC-4, markww wrote:
>
> Hi,
>
> I'm trying to implement a CellList. It works ok, but when I click an item, 
> it seems like all other items in the list are destroyed, and I'm left with 
> the clicked item in the upper left corner of the screen. Here's my setup:
>
>     CellList list = new CellList<Foo>(cell);
>     list.setPageSize(30);
>     list.setRowData(mFoos);
>     list.setWidth("100%"); 
>     list.setHeight("100%");
>
>     SingleSelectionModel<Foo> selectionModel = new 
> SingleSelectionModel<Foo>();
>     selectionModel.addSelectionChangeHandler(new 
> SelectionChangeEvent.Handler() {
>         @Override
>         public void onSelectionChange(SelectionChangeEvent event) {
> }
>     });
>     list.setSelectionModel(selectionModel);
>     VerticalPanel panel = new VerticalPanel();
>     panel.add(list);
>
> any idea why this is happening? I don't have anything happening in my 
> selectionModel instance, it's empty. So I'm not driving any UI changes as a 
> result of the click. Is it supposed to behave like that?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/j7KpaKGHPk8J.
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