Seam / GWT Blogging Demo, version 0.2
This demonstration application is the Seam blogging demo, with a GWT
browsing/editing interface integrated through JSF.
Key technologies used in this demo:
- Seam 1.2.0-PATCH1 running with JSF 1.2
- GWT 1.4 preview release source, including refactored RPC
- A revised version of the G4JSF integration package, allowing direct invocation of service interfaces from a GWT module encapsulated in a JSF component
- A bridge phase listener that couples the GWT and Seam phase listeners, allowing seamless invocation of service interfaces on Seam components
- A simple code generator that creates JDK 1.4-compliant beans from JDK 5 source (to work around GWT's incompatibility with Java 5)
To view the application, unzip this archive, locate build/jboss-seam-blog.war, and drop it into a Tomcat webapp instance (tested on Tomcat 5.5.12 / JDK 1.5.0_11).
Then visit http://localhost:8080/jboss-seam-blog, scroll to the bottom of the page, and click "[Browse
with GWT]" The resulting page is a JSF XHTML template containing a GWT module, invoking service methods on a Seam "GwtBlogService" component to get data from and
post data to the server.
See the included readme.txt for more information, including known bugs. Also see this explanatory article: article_0.2.html
Here is the demo (all source and compiled build included, please pardon the 41MB download): seam-blog-gwt-0.2a.zip
There is a problem running this under JDK 6; this problem is actually in the original Seam example. A bug has been filed in Seam JIRA:
JBSEAM-1276.
I am planning to attend the Seam BOF at JavaOne
(Tuesday May 8, 9 pm) to discuss this work. I will also be at Google's Mountain View developer day.
All comments welcome, there, elsewhere, or by email :-)
Cheers!
Rob Jellinghaus
rjellinghaus at gmail dot com