uklance / tapestry-cometd

A push library for Tapestry5 based on CometD
17 stars 3 forks source link

Extract ComponentJSONRenderer into tapestry-offline #51

Closed uklance closed 11 years ago

uklance commented 11 years ago

Fork tapestry-cometd on github to a project named tapestry-offline and remove any push-specific code.

The interface might look something like:

public interface OfflineComponentRenderer {
   JSONObject renderComponent(ComponentEventRequestParameters params);
   JSONObject renderComponent(ComponentEventRequestParameters params, HTTPSession session);
   void renderComponent(ComponentEventRequestParameters params, OutputStream out);
   void renderComponent(ComponentEventRequestParameters params, OutputStream out, HTTPSession session);
   void renderPage(PageRenderRequestParameters params, OutputStream out);
   void renderPage(PageRenderRequestParameters params, OutputStream out, HTTPSession session);
}
uklance commented 11 years ago

@see https://github.com/uklance/tapestry-offline