private DisclosurePanel addressDisclosurePanel(String nameId) {
final DisclosurePanel addressDisclosurePanel = new DisclosurePanel(
"Address");
//Get the Addresses
AsyncCallback<List<Address>> callback = new GetAddressHandler<List<
Address>>(PersonalDetailsView.this, *addressDisclosurePanel*);
rpc.getAddressList(nameId, callback);
return addressDisclosurePanel;
}
class GetAddressHandler<T> implements AsyncCallback<List<Address>> {
//Get the list of Addresses.
PersonalDetailsView view;
*DisclosurePanel** addressDisclosurePanel;*
final HorizontalPanel addressHorizontalPanel = new HorizontalPanel();
public GetAddressHandler(PersonalDetailsView view, *DisclosurePanel*
* addressDisclosurePanel*) {
this.view = view;
*this.addressDisclosurePanel = addressDisclosurePanel;*
}
public void onFailure(Throwable ex) {
System.out.println("RPC call failed - GetAddressHandler - Notify
Administrator.");
Window.alert("Connection failed - please retry.");
}
public void onSuccess(List<Address> result) {
Window.alert("Render address.");
addressHorizontalPanel.add(view.renderAddresses(result));
*addressDisclosurePanel.add(addressHorizontalPanel);*
}
}
Changed code is marked bold.
-- J.
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.