public class Renders
extends java.lang.Object
Example:
Calendar cal = new Calendar();
Renders.render(config.getServletContext(), request, response, cal, null, out);
See also Embed ZK Component in Foreign Framework.
Modifier and Type | Class and Description |
---|---|
static class |
Renders.PageRenderer
A special page renderer that renders a page without generating
the HTML tag of the page.
|
Constructor and Description |
---|
Renders() |
Modifier and Type | Method and Description |
---|---|
static void |
render(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Component comp,
java.lang.String path,
java.io.Writer out)
Outputs the HTML tags of the given component to the given writer.
|
static void |
render(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Richlet richlet,
java.lang.String path,
boolean pageDOM,
java.io.Writer out)
Outputs the HTML tags of the given component to the given writer with
additional control.
|
static void |
render(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Richlet richlet,
java.lang.String path,
java.io.Writer out)
Outputs the HTML tags of the given component to the given writer.
|
public static final void render(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Component comp, java.lang.String path, java.io.Writer out) throws javax.servlet.ServletException, java.io.IOException
comp
- the component to output (never null). It might have child components.path
- the request path. If null, the servlet path is assumed.out
- the output (never null).javax.servlet.ServletException
java.io.IOException
public static final void render(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Richlet richlet, java.lang.String path, java.io.Writer out) throws javax.servlet.ServletException, java.io.IOException
render(ctx, request, response, richlet, path, false, out)
.path
- the request path. If null, the servlet path is assumed.out
- the output (never null).richlet
- the richlet to run. If you have only one component to show and no need
process it under an execution, you could use
render(ServletContext, HttpServletRequest, HttpServletResponse, Component, String, Writer)
instead.javax.servlet.ServletException
java.io.IOException
public static final void render(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Richlet richlet, java.lang.String path, boolean pageDOM, java.io.Writer out) throws javax.servlet.ServletException, java.io.IOException
path
- the request path. If null, the servlet path is assumed.out
- the output (never null).richlet
- the richlet to run. If you have only one component to show and no need
process it under an execution, you could use
render(ServletContext, HttpServletRequest, HttpServletResponse, Component, String, Writer)
instead.pageDOM
- whether to generate the DOM element to represent the page.
In other words, if true is specified, the content will be enclosed with
an additional DIV element representing the tag.javax.servlet.ServletException
java.io.IOException
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.