Modified GWT HTML host page


/ Published in: HTML
Save to your folder(s)

This is the modified GWT HTML host page for your module. As you can see, the only modified element is the path to the GWT bootstrap script, the original declaration was the GWT 1.5 way, the new declaration is the [GWT 1.6 way](http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading "GWT 1.6 Release Notes") (Read the "Switch from GWTShell to HostedMode" and "Creating a directory" sections to understand this change)


Copy this code and paste it in your HTML
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <!-- The HTML 4.01 Transitional DOCTYPE declaration-->
  3. <!-- above set at the top of the file will set -->
  4. <!-- the browser's rendering engine into -->
  5. <!-- "Quirks Mode". Replacing this declaration -->
  6. <!-- with a "Standards Mode" doctype is supported, -->
  7. <!-- but may lead to some differences in layout. -->
  8.  
  9. <head>
  10. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  11. <!-- -->
  12. <!-- Any title is fine -->
  13. <!-- -->
  14. <title>Application</title>
  15.  
  16. <!-- -->
  17. <!-- This script loads your compiled module. -->
  18. <!-- If you add any GWT meta tags, they must -->
  19. <!-- be added before this line. -->
  20. <!-- -->
  21. <script type="text/javascript" language="javascript" src="Application/Application.nocache.js"></script>
  22. </head>
  23.  
  24. <!-- -->
  25. <!-- The body can have arbitrary html, or -->
  26. <!-- you can leave the body empty if you want -->
  27. <!-- to create a completely dynamic UI. -->
  28. <!-- -->
  29. <body>
  30.  
  31. <!-- OPTIONAL: include this if you want history support -->
  32. <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
  33.  
  34. </body>
  35. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.