public interface PageRenderPatch
DHtmlLayoutPortlet
to allow the deployer to plug-in a patch for particular portal container.
For example, JQueryRenderPatch
is used
to patch that Liferay failed to load zk.wpd under IE.
To specify a patch, use a library property called
"org.zkoss.zk.portlet.PageRenderPatch.class" (refer to Attributes.PORTLET_RENDER_PATCH_CLASS
.
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
beforeRender(RequestInfo reqInfo)
Called before rendering to test if the patch shall be applied.
|
void |
patchRender(RequestInfo reqInfo,
Page page,
java.io.Writer result,
java.io.Writer out)
Called after rendering to patch the result.
|
java.io.Writer beforeRender(RequestInfo reqInfo)
reqInfo
- the request informationpatchRender(org.zkoss.zk.ui.sys.RequestInfo, org.zkoss.zk.ui.Page, java.io.Writer, java.io.Writer)
(so the writer
is usually an instance of StringWriter).void patchRender(RequestInfo reqInfo, Page page, java.io.Writer result, java.io.Writer out) throws java.io.IOException
beforeRender(org.zkoss.zk.ui.sys.RequestInfo)
returns null, this method won't be called
since nothing to patch.
If beforeRender(org.zkoss.zk.ui.sys.RequestInfo)
returns a writer, the writer will become
the result argument.
reqInfo
- the request informationresult
- the result returned by beforeRender(org.zkoss.zk.ui.sys.RequestInfo)
, and
the rendering result of a page will be written to it.out
- the real output sent to the client. It is the writer
to write the patched result to.java.io.IOException
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.