OK, I don't want to pollute this mailing list with my messy codes and so, I
thought showing the following callback is sufficient:
private AsyncCallback<List<Customer>> callback = new
AsyncCallback<List<Customer>>() {
public void onFailure(Throwable caught) {
}
public void onSuccess(List<Customer> customers) {
customersFlexTable.clear();
int row = 0;
for (Customer customer : customers) {
customersFlexTable.setText(row, 0, customer.getFirstName());
customersFlexTable.setText(row, 1, customer.getLastName());
row++;
}
}
};
When a use selects a customer type from a ListBox, the ClickListener will
make a RPC call and return a list of customers.
I want to clear the existing customerFlexTable, and show only the data
returned from the RPC call.
The problem now is that customersFlexTable.clear() seems not clearing the
existing data.
On Thu, Oct 2, 2008 at 5:18 PM, Lothar Kimmeringer <[EMAIL PROTECTED]>wrote:
>
> hezjing schrieb:
>
> > Unfortunately the clear() does not work, the Javadoc explained that
> > clear() removes all widgets from the table, but does not remove other
> > HTML or "text" contents of cells.
>
> Sounds strange. Can you post a small example what exactly you mean?
> Especially what you mean with "other HTML or text". HTML is a widget
> and text generally is handled as Label-widget.
>
>
> Regards, Lothar
>
> >
>
--
Hez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---