org.apache.tapestry
Interface IJSONRender

All Known Implementing Classes:
Autocompleter

public interface IJSONRender

Defines a component/page/class that is capable of rendering json responses via IJSONWriter writers.

Author:
jkuhnert

Method Summary
 void renderComponent(IJSONWriter writer, IRequestCycle cycle)
          Renders a JSON object response back to the client.
 

Method Detail

renderComponent

void renderComponent(IJSONWriter writer,
                     IRequestCycle cycle)
Renders a JSON object response back to the client. It should be assumed that if this method is called on a component it or one of the components it contains has been requested explicitly for rendering.

Parameters:
writer - The json object writer used to write valid JSON responses.
cycle - Contextual request object.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.