Menu

#947 A way to specify where to gen ZK tags in JSP (incl zul)

3.5.2
closed
nobody
ZK JSP (20)
5
2008-10-17
2008-10-17
Tom M. Yeh
No

Issue:
When a JSP page includes one or multiple zul pages, the ZK stylesheet (and javascript) links are generated as the first line of the first included zul page.
Therefore, it is hard to override the default style.

Solution:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ZK 5 JSP Test</title>
<%= org.zkoss.zk.fn.JspFns.outZkHtmlTags(application, request, response, null)%>
<link rel="stylesheet" href="foo.css"/>
</head>
<body>
...
<jsp:include page="foo.zul"/>
...

Discussion

  • Tom M. Yeh

    Tom M. Yeh - 2008-10-17

    Ready since 10/17

     
  • Tom M. Yeh

    Tom M. Yeh - 2008-10-17
    • status: open --> closed
     

Log in to post a comment.