-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I am encountering a problem where JSP lost padding when a zul file was included using jsp:include. Here is a sample code for the problem:
<%@ page language="java" contentType="text/html; charset=iso-8859-1"
pageEncoding="UTF8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Insert title here</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="118" align="center" valign="top" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="70" align="center" valign="top" background="topmenubg-1.gif">
<jsp:include page="test.zul"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
test.zul
----------
<?xml version="1.0" encoding="UTF-8"?>
<window title="More Menu Demo" border="normal">
</window>
the table displayed at full width of the browser when jsp:include was removed. I am using ZK 3.0.5. The gif file is a one pixel width picture.
Hi, zanyking,
Thank you for reply. Setting <body style="margin:0"> does not have the effect ask the jsp:include is within the <body></body> which I believe the body setting in zk will override jsp page. I have not yet upgrade to 3.0.6. I will give it a try when I have got the chance to do so.
Do you think this problem should be reported as bug?
I got the problem solved by reloading body css after ZK is initiated, this way it will overwrite the body setting again.
I am not sure if body setting should be used within ZK machine, but I think it shouldn't override application setting. The setting should be left to the application itself.
Asked: 2008-08-14 13:09:30 +0800
Seen: 346 times
Last updated: Aug 22 '08