SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 69 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

html
In the Run Directory window specify the GWT installation directory,
in which the GWT application was created. Click on OK as shown in Fig.
4.7.
70 4 Ajax with Java-GWT
Fig. 4.7 GWT Hosted Mode Run Configuration
Click on OK in the Project Properties window. Next, we shall run the
GWT application in hosted mode. Right-click on the GWT web project
and select Run as shown in Fig. 4.8.
Fig. 4.8 Running GWT Application in Hosted Mode
4.3 Creating a GWT Application 71
The Tomcat servlet container gets started on port 8888. The
CatalogForm.java application runs and button and a label UI components
get added to the host HTML page. Click on the Click me button as shown
in Fig. 4.9.
Fig. 4.9 GWT Application in Hosted Mode
???Hello World??? text gets displayed in the host HTML page as shown in
Fig. 4.10.
72 4 Ajax with Java-GWT
Fig. 4.10 Testing the GWT Application
To run the same GWT application in web mode we shall compile the
Java class CatalogForm.java into JavaScript and HTML . First, we need
to modify the runtime settings for the web mode. Select Tools>Project
Properties and in the Project Properties window select
Run/Debug/Profile and select the Default Run Configuration. Click on
Edit and in the Edit Run Configuration window specify Default Target
as the GWTCompiler.class and in the Program Arguments field
specify the following arguments.
-out C:/GWT/gwt-windows-1.4.60/www
com.


Pages:
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6