First time here? Check out the FAQ!
Hello,
I use the following listbox object:
<listbox id="gridUsersList" fixedLayout="true" mold="paging" pageSize="10" multiple="true" checkmark="true">
<listhead sizable="true">
<listheader label="Userid" sort="auto"/>
<listheader label="Name" sort="auto"/>
<listheader label="Surname" sort="auto"/>
<listheader label="City" sort="auto"/>
</listhead>
</listbox>
The Listbox object on Firefox appears correctly, but on Internet Explorer I do not see the the label in headers columns: Userid, Name, Surname and City.
Have a try
<listheader label="Userid" sort="auto" width="25%" />
<listheader label="Name" sort="auto" width="25%" />
<listheader label="Surname" sort="auto" width="25%" />
<listheader label="City" sort="auto" width="25%" />
Thank you for your help.
IE Version : 7
ZK : latest available on the site.
The application is composed by a JSP that includes the ZUL file.
To replicate the problem, you can use the followind files:
JSP file :
<jsp:include page="test.zul"></jsp:include>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?> <?page title="title" contentType="text/html;charset=UTF-8"?> <zk> <window title="Users Table" border="normal" > <listbox id="gridUsersList" fixedLayout="true" mold="paging" pageSize="10" multiple="true" checkmark="true"> <listhead sizable="true"> <listheader label="HEAD1" sort="auto" width="10%"/> <listheader label="HEAD2" sort="auto" width="10%"/> <listheader label="HEAD3" sort="auto" width="10%"/> </listhead> <listitem> <listcell label="COL1"></listcell> <listcell label="COL2"></listcell> <listcell label="COL3"></listcell> </listitem> </listbox> </window> </zk>
-----------------JSP----------------- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <z:zkhead /> </head> <body> <jsp:include page="test.zul"></jsp:include> </body> </html>
-----------------ZUL------------------------- <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?> <?page title="title" contentType="text/html;charset=UTF-8"?> <zk> <window title="Users Table" border="normal" > <listbox id="gridUsersList" fixedLayout="true" mold="paging" pageSize="10" multiple="true" checkmark="true"> <listhead sizable="true"> <listheader label="HEAD1" sort="auto" width="10%"/> <listheader label="HEAD2" sort="auto" width="10%"/> <listheader label="HEAD3" sort="auto" width="10%"/> </listhead> <listitem> <listcell label="COL1"></listcell> <listcell label="COL2"></listcell> <listcell label="COL3"></listcell> </listitem> </listbox> </window> </zk>
I have experience the same problem even I have the same DOCTYPE defined. I have to use fixedLayout="true", then IE displays the title. However, the title text seems to be centered while it is left align in Firefox.
Also, if I set listhead to sizable="true" and when I resize the column in IE, the display is a mess.
I am using:
Zk: 3.6.1
IE: 8
Asked: 2009-04-20 12:40:44 +0800
Seen: 774 times
Last updated: Jun 05 '09