My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

Updating small parts of an html page is a time consuming development effort for a Java web application. While Ruby on Rails handles this effortlessly, the standard Java solutions (Tiles and DWR) require new Xml configuration for each html page, and the results are still somewhat unsatisfying.

The obvious solution is for a webapp to create a JSON object packed with the contents of several rendered jsps. Each rendering corresponds to the Rails notion of a partial. JavaScript waits on the browser to place the n partials into n divs whose ids are represented by the JSON object's property names. To add flexibility, some property names are treated as special. For example 'popup', 'redirect', and 'customJavaScript' generate the obvious actions.

This is the idea behind the jp4j (JSON partials for java) project. We focus on the Java part of the equation, and currently implement the necessary tricks in Spring MVC. (We may consider a Struts implementation in the future.) Although Java is our focus, we also propose a jQuery implementation of the client-side code, using Dojo widgets for popups.

Powered by Google Project Hosting