https://www.zkoss.org/_w/index.php?title=ZK_Developer%27s_Guide/ZK_in_Other_Environments/Portal_integration/The_Usage&feed=atom&action=history
ZK Developer's Guide/ZK in Other Environments/Portal integration/The Usage - Revision history
2024-03-29T13:14:16Z
Revision history for this page on the wiki
MediaWiki 1.35.1
https://www.zkoss.org/_w/index.php?title=ZK_Developer%27s_Guide/ZK_in_Other_Environments/Portal_integration/The_Usage&diff=53481&oldid=prev
Hawk: correct highlight (via JWB)
2022-01-19T10:41:37Z
<p>correct highlight (via JWB)</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:41, 19 January 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== The zk_page and zk_richlet Parameter and Attribute ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== The zk_page and zk_richlet Parameter and Attribute ===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>ZK portlet loader is a generic loader. To load a particular ZUML page, you have to specify either a request parameter, a portlet attribute or a portlet preference called <<del class="diffchange diffchange-inline">tt</del>>zk_page</<del class="diffchange diffchange-inline">tt</del>>, if you want to load a ZUML page, or <<del class="diffchange diffchange-inline">tt</del>>zk_richlet</<del class="diffchange diffchange-inline">tt</del>>, if you want to load a richlet.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>ZK portlet loader is a generic loader. To load a particular ZUML page, you have to specify either a request parameter, a portlet attribute or a portlet preference called <<ins class="diffchange diffchange-inline">code</ins>>zk_page</<ins class="diffchange diffchange-inline">code</ins>>, if you want to load a ZUML page, or <<ins class="diffchange diffchange-inline">code</ins>>zk_richlet</<ins class="diffchange diffchange-inline">code</ins>>, if you want to load a richlet.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>More precisely, ZK portlet loader first checks the following locations for the path of the ZUML page or the richlet. The lower the number, the higher the priority.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>More precisely, ZK portlet loader first checks the following locations for the path of the ZUML page or the richlet. The lower the number, the higher the priority.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request parameter (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getParameter</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_page</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the ZUML page.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request parameter (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getParameter</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_page</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the ZUML page.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request attribute (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getAttribute</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_page</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the ZUML page.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request attribute (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getAttribute</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_page</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the ZUML page.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request preference (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getPortletPreferences</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getValue</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_page</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the ZUML page.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request preference (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getPortletPreferences</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getValue</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_page</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the ZUML page.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request parameter (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getParameter</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_richlet</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the richlet.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request parameter (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getParameter</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_richlet</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the richlet.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request attribute (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getAttribute</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_richlet</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the richlet.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request attribute (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getAttribute</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_richlet</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the richlet.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The request preference (<<del class="diffchange diffchange-inline">tt</del>>RenderRequest</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getPortletPreferences</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getValue</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_richlet</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the richlet.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The request preference (<<ins class="diffchange diffchange-inline">code</ins>>RenderRequest</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getPortletPreferences</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getValue</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_richlet</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the richlet.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># The initial parameter (<<del class="diffchange diffchange-inline">tt</del>>PortletConfig</<del class="diffchange diffchange-inline">tt</del>>'s <<del class="diffchange diffchange-inline">tt</del>>getInitParameter</<del class="diffchange diffchange-inline">tt</del>>) called <<del class="diffchange diffchange-inline">tt</del>>zk_page</<del class="diffchange diffchange-inline">tt</del>>. If found, it is the path of the ZUML page.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># The initial parameter (<<ins class="diffchange diffchange-inline">code</ins>>PortletConfig</<ins class="diffchange diffchange-inline">code</ins>>'s <<ins class="diffchange diffchange-inline">code</ins>>getInitParameter</<ins class="diffchange diffchange-inline">code</ins>>) called <<ins class="diffchange diffchange-inline">code</ins>>zk_page</<ins class="diffchange diffchange-inline">code</ins>>. If found, it is the path of the ZUML page.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Examples ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Examples ===</div></td></tr>
</table>
Hawk
https://www.zkoss.org/_w/index.php?title=ZK_Developer%27s_Guide/ZK_in_Other_Environments/Portal_integration/The_Usage&diff=3446&oldid=prev
Char: Created page with ' {{ZKDevelopersGuidePageHeader}} === The zk_page and zk_richlet Parameter and Attribute === ZK portlet loader is a generic loader. To load a particular ZUML page, you have to sp…'
2010-07-20T01:39:57Z
<p>Created page with ' {{ZKDevelopersGuidePageHeader}} === The zk_page and zk_richlet Parameter and Attribute === ZK portlet loader is a generic loader. To load a particular ZUML page, you have to sp…'</p>
<p><b>New page</b></p><div><br />
{{ZKDevelopersGuidePageHeader}}<br />
<br />
=== The zk_page and zk_richlet Parameter and Attribute ===<br />
ZK portlet loader is a generic loader. To load a particular ZUML page, you have to specify either a request parameter, a portlet attribute or a portlet preference called <tt>zk_page</tt>, if you want to load a ZUML page, or <tt>zk_richlet</tt>, if you want to load a richlet.<br />
<br />
More precisely, ZK portlet loader first checks the following locations for the path of the ZUML page or the richlet. The lower the number, the higher the priority.<br />
<br />
# The request parameter (<tt>RenderRequest</tt>'s <tt>getParameter</tt>) called <tt>zk_page</tt>. If found, it is the path of the ZUML page.<br />
# The request attribute (<tt>RenderRequest</tt>'s <tt>getAttribute</tt>) called <tt>zk_page</tt>. If found, it is the path of the ZUML page.<br />
# The request preference (<tt>RenderRequest</tt>'s <tt>getPortletPreferences</tt>'s <tt>getValue</tt>) called <tt>zk_page</tt>. If found, it is the path of the ZUML page.<br />
# The request parameter (<tt>RenderRequest</tt>'s <tt>getParameter</tt>) called <tt>zk_richlet</tt>. If found, it is the path of the richlet.<br />
# The request attribute (<tt>RenderRequest</tt>'s <tt>getAttribute</tt>) called <tt>zk_richlet</tt>. If found, it is the path of the richlet.<br />
# The request preference (<tt>RenderRequest</tt>'s <tt>getPortletPreferences</tt>'s <tt>getValue</tt>) called <tt>zk_richlet</tt>. If found, it is the path of the richlet.<br />
# The initial parameter (<tt>PortletConfig</tt>'s <tt>getInitParameter</tt>) called <tt>zk_page</tt>. If found, it is the path of the ZUML page.<br />
<br />
=== Examples ===<br />
How to pass a request parameter or attribute to a portlet depends on the portal. You have to consult the user's guide of your favorite portal for details. The following is an example that uses Potix Portal.<br />
<br />
<source lang="xml" ><br />
<layout contentType="text/html"><br />
<title>ZK Portlet Demo</title><br />
<header name="Cache-Control" value="no-cache"/><br />
<header name="Pragma" value="no-cache"/><br />
<br />
<vbox><br />
<hbox><br />
<servlet page="sample1.zul"/><br />
<portlet name="zkdemo.zkLoader"><br />
<attribute name="zk_page" value="/test/sample2.zul"/><br />
</portlet><br />
</hbox><br />
</vbox><br />
<br />
<molds uri="~./pxp/html/molds.xml"/><br />
</layout><br />
</source><br />
<br />
{{ ZKDevelopersGuidePageFooter}}</div>
Char