camper2020
unread,Jul 13, 2011, 7:43:02 AM7/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi there,
Trying to make my way around GWT and request factory, I'm currently
trying to receive a list of EntityProxies from the server, I am using
locators and as such I might be making a mistake there somewhere.
I am able to receive a single EntityProxy but when I pull through a
List<EntityProxy>, a list of the correct size is pulled through, but
each item is the exact same object (well copies of), namely the first
item repeated.
Here is my Receiver code:
Receiver<List<EmptyObjectProxy>> emptyObjectReceiver = new
Receiver<List<EmptyObjectProxy>>() {
@Override
public void onSuccess(List<EmptyObjectProxy> response) {
Window.alert(response.size() + "");
emptyObjectViewTable.setRowData(0, response);
emptyObjectViewTable.setRowCount(response.size(), true);
}
};
context.getAll().fire(emptyObjectReceiver);
Any help would be greatly appreciated.
Regards.