Details
-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
None
Description
The SEORenderer is not called when I test it in the ZK JSP page,
but it works for zul page , not sure it's a spec or issue.
For my expect , it should render "hihi" for every page in the source code,
but it's not rendering anything in the source.
-------------------
TestJSP.jsp
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="zk" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>TEST SEO Renderer with ZK JSP</title>
<zk:zkhead />
</head>
<body>
<div>
test
<zk:page>
<zk:button id="test" label="Test"></zk:button>
</zk:page>
</div>
</body>
</html>
package test;
import java.io.IOException;
import java.io.Writer;
import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.sys.SEORenderer;
public class MySEORenderer implements SEORenderer {
public void render(Page page, Writer out) throws IOException
{ out.write("hihi"); }}
–
zk.xml
–
<listener>
<listener-class>test.MySEORenderer</listener-class>
</listener>