-
Get a monthly update on best practices for delivering successful software.
Every AJAX framework developer I've spoken to has speculated that you could use GWT to write widgets and other Javascript logic for thier framework. But just how would you go about doing it? At runtime, GWT:
Now other people have hooked things like script.aculo.us into GWT, but the flow of control has been from GWT to the library. What about going the other way, from another framework to GWT? Can we simply create custum GWT widgets and register framework calls and callbacks within 'native' methods of the widget, or should we write static methods and register them in their name-mangled form from the entry point with the window object, there to be called by non-GWT javascript. We certainly want to leverage the browser independent DOM, event and other libraries of the GWT.
Once we've solved the problem of hooking into GWT, will this break our ability to debug in hosted mode? I aim to find out by writing a simple Echo2 widget, first in the usual way, next using GWT. Wish me luck.
Related posts:
Topics: Ajax Components, Ajax Frameworks, GWT
I thought your idea sounded interesting so I whipped up some sample code demonstrating the use of GWT components from native JavaScript. Which presumably implies they can be used from within any native JavaScript framework. Details at http://nubgames.com/index.cgi/gwt/exporting-gwt-widgets-for-other-frameworks.html and full source code is available.
Comment by Eric Sessoms, Saturday, July 29, 2006 @ 11:13 am