|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageRenderPatch
A patch that is used to process the rendering result of a page.
Currently, it is used only by 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
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
java.io.Writer beforeRender(RequestInfo reqInfo)
reqInfo
- the request information
patchRender(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |