Is the ztemplates-class that actually does the rendering of a render-pojo to a String.

The render-pojo is usually annotated with @ZRenderer.

If not, the ZRenderEngine simply returns toString().

If yes, it instantiates the renderer, computes the exposed values, and lets the renderer compute the String. There are some default exposed values, that is values exposed by the framework without using the @ZExpose annotation.

In ztemplates-web, you typically call the ZRenderEngine for rendering the pojo to the HttpServletRespons indirectly over the ZTemplates ServletService:

Object pojo = ...;

Or, if you want to render the output to a String for further processing:

Object pojo = ...;
String s = ZTemplates.getRenderService().render(pojo);

Neuen Anhang hinzuf�gen

Du bist nicht autorisiert, Anh�nge zu dieser Seite hochzuladen.
« Diese Seite (Version-) wurde zuletzt am 22-Dez-2013 13:18 von gerdziegler.de ge�ndert.