Hi,

A while ago, David Nuescheler and I wrote an "Ajax meets JCR"
javascript client + servlet combo that David presented at the Jazoon
conference [1].

This allows simple JCR-based applications to be created very easily,
with no server-side code, though that can of course be combined with
the existing server-side stuff when needed.

At the time we were thinking of contributing that eventually to
Jackrabbit, but, with the recent developments, microsling seems like a
more suitable home for that, especially in terms of potential
community and audience.

Technically, integrating this in microsling would mean:

1) Enhancing the DefaultSlingServlet to handle POSTs in a fancier way,
or rather replacing it with a MicroslingAjaxPostServlet dedicated to
this, and called by default for POST requests.

2) Enhancing the DefaultSlingServlet's doGet method to return Items in
JSON format by default. That's generally useful, compared to the
current text dump which has only debugging value.

3) Providing the client-side code with microsling, currently that's
less than 400 lines of javascript, with no dependencies to other
javascript libraries. And some examples (which we already have) and
automated tests of course.

The name rjax is taken in the meantime ([2], "reverse Ajax") so we
suggest naming that simply the "microsling Ajax client".

The impact on microsling is minimal, the only specific thing
server-side is the MicroslingAjaxPostServlet, but the benefits can be
important, in terms of enabling rapid development of JCR-based Ajax
applications.

WDYT?

-Bertrand

[1] http://www.day.com/maven/rjax/
[2] http://www.rjax.net/

Reply via email to