News: Article: Integrating the Google Web Toolkit with JSF using G4jsf
In this article, Sergey Smirnov discusses, primarily through the use of a step-by-step example, G4jsf, a new integration library for facilitating the combination of Google Web Toolkit and JavaServer Faces as complimentary technologies.
- Posted by: Regina Lynch
- Posted on: August 30 2006 15:50 EDT
- Hooray! by Rick Hightower on August 30 2006 16:39 EDT
- Not the best example... by Bob Lee on August 30 2006 19:59 EDT
- why JSF? GWT is a rich UI. They it will just call service by Melvin Ma on September 01 2006 19:34 EDT
- Re: why JSF? GWT is a rich UI. They it will just call service by Sergey Smirnov on September 05 2006 19:30 EDT
I think this is awesome. I was looking for a way to accomplish this type of integration. It is nice to see that somebody has already come up with one. This is something I can use straight away. I hope it works well.
Wouldn't using GWT's built-in RPC mechanism be a lot simpler?
For those of us with investments in JSF already, if I'm understanding this correctly, I think the advantage is that we can still have JSF paint most of the page and handle the stuff we have it doing already (layout, form validation, navigation, etc). But then we can add in gwt components to handle the dynamic ajax type interactions. I'm excited to try it out.
For those of us with investments in JSF already, if I'm understanding this correctly, I think the advantage is that we can still have JSF...Yes, It is most common kind of use cases, we kept in mind. For example, you have a business and the web site, written with JSF that presents this business in Internet. If you want to show the office on the map that is nearest to a user's location, the functionality based of the Google Map GWT component is a simple and presentable way to accomplish this. a4j-gwtMap example referenced at the bottom of the G4jsf home page - https://ajax4jsf.dev.java.net/nonav/ajax/gwt/gwt-cdk.html - shows this component in use. Meanwhile, the strong server-side background provided by JSF might be a good accelerator for developing one-page application with rich user interface developed with GWT. What we were going to accomplish started this open source project was a multiplication of two technologies powers worked together.
Wouldn't using GWT's built-in RPC mechanism be a lot simpler?Bob, G4jsf is not about replacement for RPC, but how the GWT's built-in RPC mechanism is integrated into JavaServer Faces environment. So, please, do not interpret it like an alternative. It is an extension from this point of view.
why we are so attached to jsf?
In short: because the enterprise level stateful application required on the market also. JavaServer Faces is a server technology just by definition. It has a rich server architecture. GWT is a rich UI (i.e., offers the rich client functionality). Server + Client : this is a motivation for our integration solution.