- We design and build extraordinary applications for companies looking to make the next great idea a reality.
- learn more
Using GWT to Create Widgets for Other Frameworks, Part II
Eric Sessoms of Nub Games read my post about using GWT for other frameworks and decided to put the idea of exposing GWT functions as regular javascript functions to the test. He exposes the constructor of a widget through a static factory method.
While this is a good start, It's not the final stop. To make the GWT suitable for integration with other frameworks, we can't view it as an application framework but rather as a Java to Javascript compiler or as a generator of individual object types. Someone has to be in charge, and if our goal is to integrate GWT into some othe framework, control has to be in that other framework. My experimentation with the GWT seems to suggest that using it's event handling code in the abscence of widgets may not be so simple.
While you're over at Nub Games, have a look at some of their other posts, such as the one on using CSS with GWT.
Topics: GWT
Comments: 1 so far
Leave a comment
About Pathfinder
Recent
- Automated Deployments Rock
- Bandwidth profiling Flex projects and more with Charles
- iPhone SDK: UIViewController Testing & TDD
- Icons are evil; so are menus - unless you do them right
- The Truth About Designing For Security
- GWT, Gadgets and OpenSocial, Part 2
- Has Many has_many: A Refactoring Story
- The Hidden Power of Canvas
- Review of fixture_replacement2 plugin
- Chess Game Viewer in GWT
Archives
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006


I guess I really didn’t do a very good writup of the exporting technique, but GWT does in fact give up control. The GWT framework initializes and calls the application entry point which exports classes and methods as necessary before exiting. The page is then run by non-GWT JavaScript. I’ll make an effort to do a better job the next time I task switch back in that direction.
In the mean time, if there is any specific example anyone would like to see, reply on this comment thread and I’ll try to work it in.
Comment by Eric Sessoms, Tuesday, August 1, 2006 @ 1:04 pm