public class NonRootContextJQueryRenderPatch extends JQueryRenderPatch
To use it, you have to specify a library property called ""org.zkoss.zk.portlet.PageRenderPatch.class" with this class's name ("org.zkoss.zkplus.liferay.NonRootContextJQueryRenderPatch").
JQUERY_PATCH
Constructor and Description |
---|
NonRootContextJQueryRenderPatch() |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
beforeRender(RequestInfo reqInfo)
It returns an instance of StringWriter if
JQueryRenderPatch.getDelay() is non-negative,
or null if negative (means no patch). |
void |
patchRender(RequestInfo reqInfo,
Page page,
java.io.Writer result,
java.io.Writer out)
Called after rendering to patch the result.
|
getBrowserDelay, getDelay, processHtml, setDelay
public java.io.Writer beforeRender(RequestInfo reqInfo)
JQueryRenderPatch
JQueryRenderPatch.getDelay()
is non-negative,
or null if negative (means no patch).beforeRender
in interface PageRenderPatch
beforeRender
in class JQueryRenderPatch
reqInfo
- the request informationPageRenderPatch.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).public void patchRender(RequestInfo reqInfo, Page page, java.io.Writer result, java.io.Writer out) throws java.io.IOException
PageRenderPatch
PageRenderPatch.beforeRender(org.zkoss.zk.ui.sys.RequestInfo)
returns null, this method won't be called
since nothing to patch.
If PageRenderPatch.beforeRender(org.zkoss.zk.ui.sys.RequestInfo)
returns a writer, the writer will become
the result argument.
patchRender
in interface PageRenderPatch
patchRender
in class JQueryRenderPatch
reqInfo
- the request informationresult
- the result returned by PageRenderPatch.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-2011 Potix Corporation. All Rights Reserved.