I'm interested in the AJAX component of
JSF, and how this component shapes up to the Google Web Toolkit.
Over the summer some interns added a single autocomplete pulldown to one of our jsps using the GWT. The process seemed laborious to me. You build an event driven model. This model generates client side xml and html pages for each kind of browser the GWT supports. These files contain the JS that calls on the server. They talk to some sort of
servlet, which talks to an RPC serlvet, which makes a call to your actual server. It all seemed very hard coded and I had a hard time seeing if there was any chance of reusability.
After seeing the process of the GWT, I'm curious about JSF and how it compares.
Similarity: How similar is the JSF way of AJAX to the GWT way?
Development Time: Does it take more or less time to develop the JSF widgets?
Reuse: The part I disliked about the GWT is that it seemed difficult, if not impossible, to build one of these AJAX widgets once, and then instantiate it multiple times. In JSF, how much new code/configuration do I need to add every time I build an autocomplete? Do I need to build a servlet specific to each instatiation? Is it much simpler than that?
Generated Code: The GWT generates an xml file and an html file containing the code specific for each browser. What does JSF actually generate?
More questions when I think of them.
Thanks,
Jacob Fenwick