GWT module declaration with rename-to attribute


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

GWT compiler and hosted mode put all of their generated files in a folder named like the module (in this example the module name is fr.salvadordiaz.gwt.sample.Application). The rename-to attribute changes the name of this folder to the given value (compiler and hosted mode will output files to a folder simply named Application in this example)


Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd">
  2. <module rename-to="Application">
  3.  
  4. <!-- Inherit the core Web Toolkit stuff. -->
  5. <inherits name='com.google.gwt.user.User'/>
  6.  
  7. <!-- inherit css based theme -->
  8. <inherits name='com.google.gwt.user.theme.standard.Standard'/>
  9.  
  10. <!-- Specify the app entry point class. -->
  11. <entry-point class='fr.salvadordiaz.gwt.sample.client.Application'/>
  12.  
  13. <!-- Specify the application specific style sheet. -->
  14. <stylesheet src='Application.css' />
  15.  
  16. </module>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.