Why would you need to create a proxy each time you need to access your Resources interface?
Just do it one time Resources resources = GWT.create(Resources.class) and call this instance everywhere (declare it static if needed, since the instance will not change over the life cycle of your application). BTW, I do not know if using runAsync for each of your resource is a good pattern. Best luck Alexandre On 20 sep, 14:43, JAre JAre <[email protected]> wrote: > Hello everyone! > I need to make my resources built into (Data URI) piece of code that > will be called as asynchronous code. > > I have a lot of separate asynchronous code and single > clientBundle(that it will use). > > Should i initiate resources inside each onSuccess call? Like this: > > ... > public void onSuccess() { > ... > Resources resources = > GWT.create(Resources.class); > Image img1 = new Image(resources.img1res()); > RootPanel.get("Container").add(img1); > } > ... > > public void onSuccess() { > ... > Resources resources = > GWT.create(Resources.class); > Image img2 = new Image(resources.img2res()); > RootPanel.get("Container").add(img2); > } > ... -- 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.
