Академический Документы
Профессиональный Документы
Культура Документы
-U s m a n
-P a v a n
- R a ja k u m a r
Agenda
Javascript JAVA
Based on javascript,html,xml,css.xhtml,DOM.
OOPS
Asynchronous Calls
To share load between client and server
Keeping only insensitive data on client side
Not for validation but for the better and rich user
interface.
G W T A p p lic a t io n A r c h it e c t u r e
M o d e s o f R u n n in g G w t a p p lic a t io n
Gwt Application can run in two modes .
Host Mode
Hosted Mode is a 'simulated' mode
Run entirely from Eclipse using the GWT Shell.
* Consists of a customized Tomcat Web container.
* Makes debugging easier .
Web Mode
Run as pure JavaScript and HTML,compiled from
your original Java source code with the GWT
G o o g le W e b To o lk it (G W T)
@ development time @ deployment time
Compile to
JAVA/eclipse
<html>
Javascript
javascript
[...]
<script type="text/javascript">
[...]
xmlhttp.open("POST", url, true);
xmlhttp.onreadystatechange = function(func) {
if (xmlhttp.readyState == 4) {
[...]
}
}
xmlhttp.setRequestHeader('MessageType', 'CALL');
xmlhttp.setRequestHeader('Content-Type', 'text/xml');
e </script>
<body>[...]</body>
cod
</html>
A b ile t o
yte
JAV omp
C
Hosted mode
JVM
IDE
G W T: p r o je c t s t r u c t u r e
Package Purpose
it/sella/gwt/ The project root
package contains
module XML files
Jsp,Html, ...
Libraries
http://gwt-ext.com/
http://extjs.com/products/gxt/
Showcase
http://gwt.google.com/samples/Showcase/Showc
http://www.gwt-ext.com/demo/#credits