Hi Lothar Yes, it works when changed to the following, customersFlexTable.setWidget(row, 0, new Label(customer.getFirstName())); customersFlexTable.setWidget(row, 1, new Label(customer.getLastName()));
Thank you! On Thu, Oct 2, 2008 at 5:53 PM, Lothar Kimmeringer <[EMAIL PROTECTED]>wrote: > > hezjing schrieb: > > OK, I don't want to pollute this mailing list with my messy codes and > > so, I thought showing the following callback is sufficient: > > > > customersFlexTable.setText(row, 0, > customer.getFirstName()); > > customersFlexTable.setText(row, 1, > customer.getLastName()); > > > > 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. > > I don't know if this a bug in FlexTable (I assume the developers > will read here as well), but the fastest solution would be to use > > customersFlexTable.setText(row, 0, new Label(customer.getFirstName())); > customersFlexTable.setText(row, 1, new Label(customer.getLastName())); > > > 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 -~----------~----~----~----~------~----~------~--~---
