Loading GWT module in two and more HTML hosting pages
Does any one has an idea how to load same GWT module in开发者_如何学Python two different HTML pages and if the script tag has to be modified or some thing like that?
Just copy the script tag into each page you want to load the module.
If you need history support, you'll also have to copy that history iframe. Any css files you link from the host page also need to be copied.
Addendum: If you try to access any elements by ID that are defined in your original host file, you also need to define those elements in the second host file. For example, if you use RootPanel.get("specialDivName") to find a <div id="specialDivName">
in the host page, you've got to make sure that div is in the second host page as well.
精彩评论