- File -> New -> Module,
- File -> New -> HTML Page, and
- File -> New -> Entry Point Class
in this exact order. (The shortcut for File -> New on a Mac is option-command-N.) Some details are due, though.
1. Select the New Web Application Project menu item. Project name: site1, Package: s1, unselect Use Google App Engine, unselect Generate GWT sample code. Finish.
2. In the Package Explorer view, select your site1 project. Select the New GWT Module menu item. Module name: m1, Package: s1, Finish. In the generated m1.gwt.xml, add an attribute to the root element; the result should look like this:
<module rename-to="m1">
If you do not do this, the next step will produce incorrect results.
3. Select the New HTML Page menu item. File name: welcome.html, Finish.
4. Select the New Entry Point Class menu item, Name: EntryPoint, Finish. Make a note - the m1.gwt.xml file has been updated accordingly in the editor, and you now MUST save this file.
If you now debug your site1, you will see EntryPoint.onModuleLoad() started.
If you now debug your site1, you will see EntryPoint.onModuleLoad() started.
Summing up, the trick is to rename the generated module.
unable to add the gwt html page
ReplyDeletedamn, why cant they make it user friendly and just let us directly add a new page like in asp.net