Package org.zkoss.zkplus.embed
Class Renders.PageRenderer
java.lang.Object
org.zkoss.zkplus.embed.Renders.PageRenderer
- All Implemented Interfaces:
org.zkoss.zk.ui.sys.PageRenderer
- Enclosing class:
- Renders
A special page renderer that renders a page without generating
the HTML tag of the page.
In other words, it generates all components directly.
The Content-Security-Policy header belongs to the embedding page, so this renderer
does not generate one. It stamps the nonce ZK holds for the current request, which is
available as ${cspNonce}, on the script tags it generates; a host that
wants those scripts authorised has to carry that nonce in its own policy.
- Since:
- 5.0.4
- Author:
- tomyeh
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PageRenderer(org.zkoss.zk.ui.Execution exec) PageRenderer(org.zkoss.zk.ui.Execution exec, boolean pageDOM) -
Method Summary
-
Constructor Details
-
PageRenderer
public PageRenderer()Default constructor. It is the same asPageRenderer(Executions.getCurrent()). -
PageRenderer
public PageRenderer(org.zkoss.zk.ui.Execution exec) -
PageRenderer
public PageRenderer(org.zkoss.zk.ui.Execution exec, boolean pageDOM) - Parameters:
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.- Since:
- 5.0.8
-
-
Method Details
-
render
- Specified by:
renderin interfaceorg.zkoss.zk.ui.sys.PageRenderer- Throws:
IOException
-