Re: Integration with GWT

2008-10-01 Thread Szemere Szemere
To integrate GWT and Tapestry, we're using separate projects in Eclipse.
One for GWT code (uses Ant as build tool) and the other for Tapestry (Maven
based).

I looked at maven-gwt a few months back and I decided against using it,
because it didn't seem easy to use, give a big enough benefit for learning
it and it appeared to be in experimental stage.

We build the projects into .war's
Project 1 (GWT)  -->  project1gwt.war
Project 2 (Tapestry) -->  project2tap.war

The public/project1gwt.html file is embedded in a tapestry .tml page (within
a template).

To pass parameters from Tapestry to GWT, the values are embedded in the
Tapestry page in:
345

GWT (1.5.2, this code varies between versions) can then extract those using
String value = RootPanel.get("entityID").getElement().getString();

To test (integration test level), we use JBoss 4.2.2, which gives dynamic
.war reloading (unlike plain Tomcat) and good logging out the box.

Szemere


Re: Integration with GWT

2008-09-23 Thread Szemere Szemere
We integrated GWT in Tapestry in a basic but effective fashion. Tapestry
does the "single click then display page" stuff and GWT does the interactive
application functionality.

We treat GWT and Tapestry as separate projects, so the integration is
light.  Tapestry has a template page wrapper around the GWT html page. GWT
receives a few parameters encoded in the starting HTML page (rather than
trying to extract out of the http session).

I would be interested to hear where you get to on your tighter integration
plans and what works.

Szemere


Re: Integration with GWT

2008-09-22 Thread Alexey Frishman
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?)
> >
>


Re: Integration with GWT

2008-09-22 Thread Daniel Jue
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?)
>


Integration with GWT

2008-09-21 Thread Alexey Frishman
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?)