Thursday, May 26, 2011

Re: Issue in method anonymous class in GWT

Thanks Jen...if u can give me some example of GWT.runAsync...then it
wud be little helpful to me

On May 24, 2:13 pm, Jens <jens.nehlme...@gmail.com> wrote:
> No I assumed you call your model.setRecords() method inside the model()
> method (because thats the only place where you can call it). So in my
> example the call label.setText() would by the model.setRecords() call in
> your example.
>
> It has to be executed in order. Just imagine your anonymous inner class has
> a getter and possibly does some calculations that have to be done and the
> result of that calculation is used in you outer model() method. Java and
> GWT's Java -> Javascript compiler can not rearrange that flow because it
> would easily result in broken code. Using GWT.runAsync or Scheduler.get() in
> your model() method would be the only way to break this flow.

--
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@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment