Portal"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKDeveloper…')
 
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
 +
 +
=Configuration=
 +
Here we describe the standard configuration. Depending on the portal server, you might have more configuration to set. For more information, please refer to [[ZK Installation Guide/Setting up Servers|ZK Installation Guide]].
 +
 +
== WEB-INF/portlet.xml ==
 +
To use it, you first have to add the following definition into <tt>WEB-INF/portlet.xml</tt>. Notice that <tt>expiration-cache</tt> must be set to zero to prevent portals from caching the result.
 +
 +
<source lang="xml" >
 +
<portlet>
 +
    <description>ZK loader for ZUML pages</description>
 +
    <portlet-name>zkPortletLoader</portlet-name>
 +
    <display-name>ZK Portlet Loader</display-name>
 +
 +
    <portlet-class>org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class>
 +
 +
    <expiration-cache>0</expiration-cache>
 +
 +
    <supports>
 +
        <mime-type>text/html</mime-type>
 +
        <portlet-mode>VIEW</portlet-mode>
 +
    </supports>
 +
 +
    <supported-locale>en</supported-locale>
 +
 +
    <portlet-info>
 +
        <title>ZK</title>
 +
        <short-title>ZK</short-title>
 +
        <keywords>ZK,ZUML</keywords>
 +
    </portlet-info>
 +
</portlet>
 +
</source>
 +
 +
== WEB-INF/web.xml ==
 +
ZK portlet loader actually delegates the loading of ZUML documents to ZK Loader (<javadoc>org.zkoss.zk.ui.http.DHtmlLayoutServlet</javadoc>). Thus, you have to configure <tt>WEB-INF/web.xml</tt> as specified in [[ZK Installation Guide]], even if you want to use only portlets.
  
 
=Version History=
 
=Version History=

Revision as of 02:09, 29 November 2010

Configuration

Here we describe the standard configuration. Depending on the portal server, you might have more configuration to set. For more information, please refer to ZK Installation Guide.

WEB-INF/portlet.xml

To use it, you first have to add the following definition into WEB-INF/portlet.xml. Notice that expiration-cache must be set to zero to prevent portals from caching the result.

 <portlet>
     <description>ZK loader for ZUML pages</description>
     <portlet-name>zkPortletLoader</portlet-name>
     <display-name>ZK Portlet Loader</display-name>

     <portlet-class>org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class>

     <expiration-cache>0</expiration-cache>

     <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
     </supports>

     <supported-locale>en</supported-locale>

     <portlet-info>
         <title>ZK</title>
         <short-title>ZK</short-title>
         <keywords>ZK,ZUML</keywords>
     </portlet-info>
 </portlet>

WEB-INF/web.xml

ZK portlet loader actually delegates the loading of ZUML documents to ZK Loader (DHtmlLayoutServlet). Thus, you have to configure WEB-INF/web.xml as specified in ZK Installation Guide, even if you want to use only portlets.

Version History

Last Update : 2010/11/29


Version Date Content
     



Last Update : 2010/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.