0

Listbox problem

asked 2009-04-20 12:40:44 +0800

cordero gravatar image cordero
24

updated 2009-04-20 12:44:31 +0800

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.

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2009-04-20 13:18:35 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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%" />

link publish delete flag offensive edit

answered 2009-04-20 13:36:48 +0800

cordero gravatar image cordero
24

yes, I try it, but nothing...

link publish delete flag offensive edit

answered 2009-04-21 01:15:37 +0800

iantsai gravatar image iantsai
2755 1

Which Version of IE and ZK are you use?

And seems your description can't let any of us replicate your problem.
So, could you provide a complete and Copy-Paste-Run sample code?

link publish delete flag offensive edit

answered 2009-04-21 10:13:48 +0800

cordero gravatar image cordero
24

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>


ZUL file:
<?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'm going to move this help request to the HELP section.

link publish delete flag offensive edit

answered 2009-04-22 02:09:36 +0800

iantsai gravatar image iantsai
2755 1
My testing have run very well:
-----------------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>
link publish delete flag offensive edit

answered 2009-04-24 08:15:19 +0800

cordero gravatar image cordero
24

Thank you, now it's ok !!
I had forgotten to insert the following line in my jsp page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

link publish delete flag offensive edit

answered 2009-06-05 18:46:09 +0800

lamh gravatar image lamh
84 3

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-20 12:40:44 +0800

Seen: 774 times

Last updated: Jun 05 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More