1 / 16

Web Toolkit

Web Toolkit. Julie George & Ronald Lopez. Requirements. Java SDK version 1.5 or later Apache Ant is also necessary to run command line arguments Can use any Java IDE Download Google Web toolkit. Major Components. SDK contains the Java API libraries, compiler, and development server .

terri
Download Presentation

Web Toolkit

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Toolkit Julie George & Ronald Lopez

  2. Requirements • Java SDK version 1.5 or later • Apache Ant is also necessary to run command line arguments • Can use any Java IDE • Download Google Web toolkit

  3. Major Components • SDK contains the Java API libraries, compiler, and development server. • GWT Designer: User friendly IDE (like .NET) for generating UI code (works on top of Eclipse) • Speed Tracer (Profiler Tool) • Plugin for Eclipse: Allows for easy deployment to Google’s app engine

  4. Features • Compile your Java code into highly optimized JavaScript • Debug. • Run in multiple browsers. • GWT compiler performs optimization • -inliningmethods,dead code, optimize strings,split points in the code

  5. How it works(write-debug-optimize-run) • unzip gwt-2.4.0.zip

  6. How it works(write-debug-optimize-run) • webAppCreator -out MyWebAppcom.mycompany.mywebapp.MyWebApp

  7. Run locally in development mode • cd MyWebApp/ • ant devmode

  8. Run locally in development mode

  9. Files Created • ant build • Host page : Code executes in this html file.

  10. Files Created • <entry-point class='com.mycompany.mywebapp.client.MyWebApp'/> • <!-- Specify the paths for translatable code --> • <source path='client'/> • <source path='shared'/>

  11. Files Created • Deployment Descriptor

  12. Files Created

  13. Scripts • Eclipse • Slide 10 Host page • Java source code

  14. Communicating with the Server • Making Remote Procedure Calls (GWT RPC) • Retrieving JSON Data via HTTP • Making Cross-Site Requests for JSONP • Making Asynchronous Calls • GWT RPC is a mechanism for passing Java objects to and from a server over standard HTTP

  15. Deployment • Ant Build or R-click project->Google->GWT compile • Files are output to the WAR folder in your project • Deploy to Google’s App Engine • Plugin • Command line program

  16. Then End… Questions?

More Related