|
DevGuideWebMode
Compile your application code into JavaScript and deploy it.
Deployment in Web ModeAs you move from development into end-to-end testing and production, you will begin to interact with your application in web mode more often. Web mode refers to accessing your application from a normal browser -- where it runs as pure JavaScript -- as it is ultimately intended to be deployed. Web mode demonstrates what makes GWT unique: as we've seen previously, the GWT compiler translates your GWT application code into JavaScript, which runs directly in the browser without plug-ins or a JVM. To run you GWT application in web mode, you can use one of the following methods:
The compiled output will go into the subdirectory www if you use the <module>-compile convenience shell script or compile from hosted mode launched by the <module>-shell script. The client-side code is placed in a subdirectory underneath www named the same as your Java module's package name. You can control the destination of the compiler output using the -out command-line argument. See the GWT Compile Script section for the full list of command-line options. Also see the GWT Compiler section for more details about the compiler itself. If you launched the application in web mode from the Hosted Mode browser using the Compile/Browse button, a new default web browser window will automatically be opened to run the application. Loading the file named Tip: The Google Web Toolkit does not endorse any particular backend technology and can integrate with any arbitrary backend technology that is best suited for your application. See the following FAQs for common questions regarding integrating and testing your GWT application code with your custom server-side technology:
See Also |
Sign in to add a comment