Juan Pablo Gardella <gardellajuanpablo@...> writes:
>
>
> Hi Harry
>
> Can you resolve the problem? If not, in onStop() or onCancel() you must
unregistrer your handlers. Not about display regions. Try put your do the
placeChangeEvent like this:
>
>
> Scheduler.get().scheduleDeferred(new ScheduledCommand() {
>
> <at> Override
>
> public void execute() {
>
> placeController.goTo(new MyPlace());
>
> }
>
> });
>
> Juan
>
> 2011/6/14 Harry X <[email protected]>
> I have a display region which will display diffrent widgets accpording place
> change event.
> The widgets are simple, haveing a couple of tables in a flowpanel and making a
> async call
> to get some data through RPC. When the place change events are fired by
clicking
> on a
> navigation tree, sometimes the widgets are not displayed. However,
> A second click on the navi tree will trigger the widget to be displayed.
> I think this has something to do with the handling with onStop()/onCancel(),
but
> not
> sure how to debug and change. Do you have any suggestion? Thanks.
> Harry
> --
> You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit-
/[email protected].
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe
<at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-
web-toolkit?hl=en.
>
>
>
>
>
>
>
Hi Juan,
Thanks for the reply. Finally get around to try your suggestion. I moved all
handler code and unregister handlers during cancel or stop, but it didn't work
for me.
I do place change in an activity like:
clientFactory.getPlaceController().goTo(place);
What's the significance of your way?
Harry
--
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.