public class StringAjaxRenderer extends Object implements AjaxRenderer
A AjaxRender that creates a XML structure from a given String.
By default, it gets from the action's output a String identified by the key "value" and generates a XML structure with a sigle tag named "value", with the body content as the value from the output, but this behavior can be changed at the constructor.
Example of a generated XML:
<value>valueFromOutput</value>
APP_JS, APP_JSON, APP_URLENCODED, TEXT_HTML, TEXT_PLAIN, TEXT_XML| Constructor and Description |
|---|
StringAjaxRenderer() |
StringAjaxRenderer(String tagName) |
public StringAjaxRenderer()
public StringAjaxRenderer(String tagName)
public String encode(Object obj, Locale loc, boolean pretty) throws Exception
encode in interface AjaxRendererExceptionpublic String getContentType()
getContentType in interface AjaxRendererpublic String getCharset()
getCharset in interface AjaxRendererCopyright © 2015. All Rights Reserved.