CellList - clicking an item makes the other list items disappear?

21 views
Skip to first unread message

markww

unread,
Sep 4, 2012, 6:44:44 PM9/4/12
to google-we...@googlegroups.com
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

markww

unread,
Sep 4, 2012, 8:26:51 PM9/4/12
to google-we...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages