Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3239

Zk porlet work with liferay 6.2 problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 8.0.1
    • Container, General
    • None
    • Windows 10
      ZK 8.0.1.1
      Liferay 6.2 GA5

      Now i have a problem about zkoss portlet with liferay 6.2. When application loaded multiple porlet (> 6) on the same page,
      the problem occurs here below :

      Some porlet do not loading. When i refresh (F5) the positions of portlet crashing randomly to each other.

      test.zul

      <?page title="new page title" contentType="text/html;charset=UTF-8"?>
      <zk>
      <window title="new page title" border="normal">
      New Content Here!
      </window>
      </zk>
      

      portlet.xml

      <?xml version="1.0"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
      	version="2.0">	
      	<portlet>
      		<portlet-name>test-zhtml</portlet-name>
      		<display-name>Test ZK portlet</display-name>
      		<portlet-class&gt;org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class&gt;
      				<init-param>
                  		<name>zk_page</name>
                  		<value>/frontend/baiviet/test.zul</value>
              		</init-param>
      		<expiration-cache>0</expiration-cache>
      		<supports>
      			<mime-type>text/html</mime-type>
      			<portlet-mode>EDIT</portlet-mode>
      		</supports>
      		<portlet-info>
      			<title>Test ZK portlet</title>
      			<short-title>Test ZK portlet</short-title>
      			<keywords>Test ZK portlet</keywords>
      		</portlet-info>
      		<security-role-ref>
      			<role-name>administrator</role-name>
      		</security-role-ref>
      		<security-role-ref>
      			<role-name>guest</role-name>
      		</security-role-ref>
      		<security-role-ref>
      			<role-name>power-user</role-name>
      		</security-role-ref>
      		<security-role-ref>
      			<role-name>user</role-name>
      		</security-role-ref>
      	</portlet>
      </portlet-app>
      

      liferay-portlet.xml

      <?xml version="1.0"?>
      <!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
      <liferay-portlet-app>
      	<portlet>
      		<portlet-name>test-zhtml</portlet-name>
      		<instanceable>true</instanceable>
      		<css-class-wrapper>stnmtv2-portlet</css-class-wrapper>
      	</portlet>
      <role-mapper>
      		<role-name>administrator</role-name>
      		<role-link>Administrator</role-link>
      	</role-mapper>
      	<role-mapper>
      		<role-name>guest</role-name>
      		<role-link>Guest</role-link>
      	</role-mapper>
      	<role-mapper>
      		<role-name>power-user</role-name>
      		<role-link>Power User</role-link>
      	</role-mapper>
      	<role-mapper>
      		<role-name>user</role-name>
      		<role-link>User</role-link>
      	</role-mapper>
      </liferay-portlet-app>
      

            Unassigned Unassigned
            all4u1089 all4u1089
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: