Saturday, June 23, 2012

Re: How to use Super Dev Mode

I think currently the codeserver only serves the compiled JavaScript of your app. So you still have to use a server that serves your server side code.

Thats what I do:

1.) create a new module.gwt.xml that inherits your main app and adds the xsiframe linker and sets the devModeRedirectEnabled property (see: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/hello/src/com/google/gwt/sample/hello/Hello.gwt.xml?spec=svn11016&r=11016)

2.) Start code server with that new module

3.) copy your apps host html page and modify it to point to the bootstrap file provided by the code server. So instead of <script src="app/app.nocache.js"> you now have <script src="http://host:port/app/app.nocache.js">. Thats why you need a different linker in your module.gwt.xml.

4.) Deploy your gwt app like always, e.g. starting the normal dev mode to use embedded jetty or deploy it using an external server.

5.) Open your deployed host html page in the browser and it should load the compiled app from the SuperDevMode code server. If you have started the normal dev mode to use embedded jetty as server you would omit the gwt.codeserver GET parameter when loading the host html page.


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9oYq7mW0Er8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate