org.apache.tapestry5.services
Interface PartialMarkupRenderer
- All Known Implementing Classes:
- PartialMarkupRendererTerminator
@UsesOrderedConfiguration(value=PartialMarkupRendererFilter.class)
public interface PartialMarkupRenderer
Defines an Ajax-oriented partial page render, wherein a render of a portion of a page occurs, and the content is
stored into a key ("content") of a JSONObject
, which is sent to the client side as
the final response. Client-side JavaScript receives this reply and uses it to update a portion of the page.
The PartialMarkupRenderer service takes an ordered configuration of PartialMarkupRendererFilter
s. It can be
selected using the Primary
marker annotation.
renderMarkup
void renderMarkup(MarkupWriter writer,
JSONObject reply)
- Implementations should perform work before or after passing the writer to the renderer.
- Parameters:
writer
- to which markup should be writtenreply
- JSONObject which will contain the partial response
Copyright © 2003-2012 The Apache Software Foundation.