...
Package | Purpose |
---|---|
tool/src/java/ | Server-side Java source-code of the Sakai's Tool Package |
tool/src/java/org/sakaiquebec/opensyllabus/client/rpc/ | The two Service Interfaces required by the GWT RPC mechanism |
tool/src/java/org/sakaiquebec/opensyllabus/server/ | The Java source-code of the Backing Bean and the Servlet Implementation of the Service required by the GWT RPC mechanism |
tool/src/webapp/ | Server-side webapp files: index.jsp, WEB-INF, tools config, osylconfigs files and compiled JS & HTML stuff |
tool/src/webapp/WEB-INF/ | Webapp configuration files: web.xml and applicationContext.xml |
tool/src/webapp/org.sakaiquebec.opensyllabus.OsylEditorEntryPoint | All the Client-side compiled JS & HTML stuff |
Development Cycle
...
Once tested in "Hosted Mode", you can compile your Java source code to JavaScript the and deploy your Webapp. GWT Webapp that has been deployed is also said to be running in "Web Mode".
In this use case, you have to invoke the JavaScript compilation then move the compiled JavaScript to the backend code. To deploy your Webapp in production, you would move the files in your www/... directory to your web server, e.g. Tomcat Also if your backend code is already deployed in Tomcat, just replace the JavaScript code & HTML by the new one. When compiled the Client-side is now pure JavaScript and HTML.
Tip | ||
---|---|---|
| ||
Just click on the Compile/Browse button in the embedded browser window |
...
Tip | ||
---|---|---|
| ||
To save time, use hosted mode "Hosted Mode" as much as possible for client code developments, because,it is faster than a GWT compilation. |