In your *.nocache.js content, you say you will have 'this.resourceUrl = "content-replaced-by-velocity";' – what is 'this' in this context? If it is the shared window that all the portlets use, they will each overwrite the resourceUrl property. If each portlet will use a different module, you could use modulename to set and access this data. This could look something like window.MyModuleName.resourceUrl = "$resourceUrl" and then access it in your native method with return $wnd[@com.google.gwt.core.client.GWT::getModuleName()()].resourceUrl;
If I have misunderstood and each portlet is in its own iframe, then your native call just needs to say 'return $wnd.resourceUrl;' to correctly reference the window object that the resourceUrl was set in. Hope this helps, Colin -- 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.
