Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-10 Thread Glyndwr Bartlett
Jens, You are magnificent! I can not express how grateful I am for your help :-) Yours-in-Scouting, Glyn (Wirrin) On 11 August 2016 at 00:51, Jens wrote: > private DisclosurePanel addressDisclosurePanel(String nameId) { > final DisclosurePanel

Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-10 Thread Jens
private DisclosurePanel addressDisclosurePanel(String nameId) { final DisclosurePanel addressDisclosurePanel = new DisclosurePanel( "Address"); //Get the Addresses AsyncCallback callback = new GetAddressHandler>(PersonalDetailsView.this, *addressDisclosurePanel*);

Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-10 Thread JonL
Your order of operations appears incorrect. From your original code I don't see where GetAddressHandler.addressHorizontalPanel is ever actually added to the addressDisclosurePanel. On Tuesday, August 9, 2016 at 3:15:42 PM UTC-7, Glyndwr Bartlett wrote: > > Hi Jens, > > I have spent over

Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-09 Thread Glyndwr Bartlett
Hi Jens, I have spent over three weeks trying to get this to work. I have tried to include your suggestion; however, I just can not get it to work. Any assistance you, or anyone else, can provide would be greatly appreciated. Kind regards, Glyn On 8 August 2016 at 19:16, Glyndwr Bartlett

Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-08 Thread Glyndwr Bartlett
Hi Jens, When I do this (in onSuccess) I get the error: addressDisclosurePanel cannot be resolved Are you ale to provide me with code examples please as I am not a real programmer I am doing this for Scouts. Kind regards, Glyn On 8 August 2016 at 18:31, Jens wrote:

Re: Return a HorizontalPanel to a DisclosurePanel when I perform an AsyncCallback

2016-08-08 Thread Jens
Move //addressDisclosurePanel.add(addressHorizontalPanel); into your GetAddressHandler and pass in the newly created addressDisclosurePanel? Alternatively use an anonymous class as callback. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users"