During the last two years, I have been working on high traffic (over
millions hits a day) , high volume, consumer based (B2C) application
with GWT.
Went through all phrases: prototype, architecture, design, implement,
test and performance tune up.
I would like to share my experiences of using GWT, including but not
limit to:
-- Navigation (token) configuration, much like Struts’ structs-
config.xml and Spring spring-servlet.xml
-- SEO: dynamic set title, meta description, meta keywords, Google
GWT search engine parsing implementation etc.
-- Spring: integrate with Spring MVC for loading GWT and RPC.
-- Map: integrate with Google map.
-- Performance tune up: remove nocache.js, reorder the call order
etc.
-- uiBInding, MVP integration.
In current release:
Navigation (token) configuration is in the current release.
gogwtarch_1.0.jar is framework extend to GWT and gogwtdemo is the
sample of using gogwtarch
The navigation configuration file would be like:
<?xml version="1.0" encoding="UTF-8"?>
<application>
<global-forwards>
<forward name="gToHome" token="home"/>
<forward name="gToDetail" token="detail"/>
</global-forwards>
<pages>
<page name="home"
class="com.gogwt.demo.gwt.navigation.client.navigation.HomeView">
<forward name="success" token="detail"/>
</page>
<!-- detail -->
<page name="detail"
class="com.gogwt.demo.gwt.navigation.client.navigation.DetailView">
<forward name="success" token="info"/>
<forward name="backToHome" token="home"/>
</page>
<!-- info -->
<page name="info"
class="com.gogwt.demo.gwt.navigation.client.navigation.InfoView">
</page>
</pages>
</application>
Where global-forwards for the global forward. And forward defined
inside page only forward locally.
Java file would like:
Button toInfo = new Button("To Info Page");
toInfo.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent arg0) {
ActionForward.forward("success");
}
});
Anchor toHome = new Anchor("Global forward: Back To home");
toHome.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent arg0) {
ActionForward.forward("gToHome");
}
});
Document:
http://code.google.com/p/gogwtrelease/wiki/gogwtdemo10
Download:
http://code.google.com/p/gogwtrelease/downloads/detail?name=gogwtarch_1.0.jar
http://code.google.com/p/gogwtrelease/downloads/detail?name=gogwtdemo_1.0.zip
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.