google web toolkit (gwt)
DESCRIPTION
Algeria JAVA USER GROUPTRANSCRIPT
ALGERIA JUG
GWTGoogle Web Toolkit
Hacen Dadda@hacentech
Google Web Toolkit
● Googel announced GWT at theJavaOne 2006
● Developement toolkit, not a framework
● One codebase, any browser
● Makes Ajax a priece of cake... and faster
Code in Java, run as javascript
We love each other !
How does it works ?
From Java to the browser
Tools
Eclipse GWT SDK GWT plugin
GWT plugin
Client/Server
Client GWT
Server Java
Hello Worldpublic class HelloWorld implements EntryPoint
{
public void onModuleLoad ()
{
Button button = new Button("Click Me");
button.addClickHandler(new HelloButtonClickHandler());
RootPanel.get().add(button);
}
class HelloButtonClickHandler implements ClickHandler
{
public void onClick (ClickEvent event)
{
Window.alert("Hello World");
}
}
}
Hello World
RPC diagram
Done ! Compile project
We need just this !
Let us go on the web
Rename (as u like)war/ site/
Here we go !