incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "xap/XAPStruts" by Robert Buffone
Date Thu, 01 Mar 2007 05:33:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by Robert Buffone:
http://wiki.apache.org/incubator/xap/XAPStruts

New page:
This page describes how to integrate [http://incubator.apache.org/xap Apache XAP] with [http://struts.apache.org
Struts2]. I use the Person Manager struts sample to illustrate how to upgrade an html application
to use XAP. Overall the integration is quite simple.  I was able to repurpose all of the Java
code (Data Model, ActionHandlers) from the sample.  All that needed to be done was to re-write
the *.ftl files to output a combination of <strong>xModify</strong> and <strong>XAL</strong>
instead of html.

The reason why integration with web frameworks is so easy, is that the XAP client retrieves
the markup used to describe the application from the server and then renders it entirely on
the client.  This is the opposite of other Ajax toolkits where:

*You either are responsible for moving data from the server to the client using XHR and updating
the UI with JavaScript code or
*The markup is down convert into HTML and JavaScript on the server as in some JSF implementation

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message