I'm trying now to implement next idea.

We have on the same page simple Tapestry components with AJAX actions (like
ActionLink or a Form with zone attribute). On the same page there are
components that are, let's say, GWT-enabled. Second ones contain a link to
your GWT module and HTML elements that will be picked up by GWT and used as
widgets.

We also have Tapestry filter and GWT's RemoteServlet derived class
registered in web.xml.
The core of the idea is to have Tapestry send and process its own AJAX
requests and save results to Session (luckily it can be done in several
lines of code). GWT will process its own AJAX requests and use the same
objects from the session.

The real trick here is how to make GWT component to update itself when
something has happened in pure Tapestry component. The only way how to solve
this problem I see now is to add javascript listener to every AJAX component
in pure Tapestry components. These listeners will push GWT components saying
"update yourself" and they will update. But the problem is how to be sure
that these listeners will be always called only *after* Tapestry AJAX is
completely processed.

If implemented, this can allow at least use in GWT components data submitted
from Tapestry component.

Does anybody have an idea, how can Javascript function be implemented just
after Tapestry AJAX call processing?

On Mon, Sep 22, 2008 at 8:15 PM, Daniel Jue <[EMAIL PROTECTED]> wrote:

> I am also interested in a basic but complete tutorial on using GWT in T5.
> Anyone want to share some sample setup/source code or give some pointers?
>
> On Sun, Sep 21, 2008 at 1:13 PM, Alexey Frishman
> <[EMAIL PROTECTED]>wrote:
>
> > Hi,
> >
> > I use T5 in my project as main web framework. The project itself is a
> sort
> > of simple web GIS, based on Google Maps. There is great widget library
> for
> > GWT to serve Google Maps with all their AJAX stuff, so I decided to use
> it
> > also.
> >
> > Please, give me some information whether it's possible to integrate full
> > lifecycle of GWT component with T5 as main framework? What I actually
> need
> > is to be able to share some objects between Tapestry and GWT, but without
> > page reload. So my GWT component should make its RPCs as usual, but these
> > calls should be made after pressing button in Tapestry component and
> > information should be got from that component too (@ApplicationState may
> > be,
> > but how to integrate it with GWT?)
> >
>

Reply via email to