Interface AjaxPartialResponseRenderer
-
- All Known Implementing Classes:
AjaxPartialResponseRendererImpl
public interface AjaxPartialResponseRenderer
Used to render portions of a page as part of an Ajax request. This encapsulates rendering of the partial response and then the construction of a JSON reply. Works with the pipeline defined by thePartialMarkupRenderer
service.- See Also:
PageRenderQueue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
renderPartialPageMarkup()
Used to render a partial response as part of an Ajax action request.void
renderPartialPageMarkup(JSONObject reply)
Used to render the partial response using a base reply object, to which any Tapestry-related information (usually related to zone updates and initializations) will be added.
-
-
-
Method Detail
-
renderPartialPageMarkup
void renderPartialPageMarkup() throws IOException
Used to render a partial response as part of an Ajax action request. A call toPageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
should precede this call.- Throws:
IOException
-
renderPartialPageMarkup
void renderPartialPageMarkup(JSONObject reply) throws IOException
Used to render the partial response using a base reply object, to which any Tapestry-related information (usually related to zone updates and initializations) will be added. In effect, this] "enhances" the reply, which contains just data, to include UI aspects that are handled by client-side code on the client.- Parameters:
reply
-- Throws:
IOException
- Since:
- 5.4
-
-