-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641486
By: tin_chen
I have add the zkFilter setting into web.xml:
<filter>
<filter-name>zkFilter</filter-name>
<filter-class>com.potix.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value>
<description>The extension to identify the content being post-processed by this filter. Default: html.</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
And those are hello.jsp sample code:
<?xml version="1.0" encoding="UTF-8"?>
<%
String msg = "Hello, World!";
%>
<window title="1st window" border="normal" width="200px">
<%= msg %>
</window>
But I got those output:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css"
href="/zkau/web/zul/css/normmoz_zh.css.dsp"/>
<script type="text/javascript">
zk_action="/zkau";
zk_desktopId="g4qn";
</script>
<script type="text/javascript" src="/zkau/web/js/zk/html/boot.js"
charset="UTF-8">
</script>
<window id="_pc1" width="200px" title="1st window" border="normal">
Hello, World!
</window>
The window zk tag didn't been parsed and transformed.
Could you give me some idea ??
Thanks very very much !!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641822
By: tomyeh
You need to specify the XML name space as described in pp. 24, the developer's guide.
<x:window xmlns:x="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul
">
<x:combobox/>
...
</x:window>
Remember XHTML and XUL components are from different name spaces. You have to specify at least one of them if you mixed them in the same page. Otherwise, ZK loader has no idea to handle it.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3644102
By: nobody
Thank you very much, it works !!!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679002
By: gladiator
I tried something like this in web.xml
<filter-name>zkFilter</filter-name>
<filter-class>com.potix.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>/layout/*.jsp</url-pattern>
</filter-mapping>
then I get this error:
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /layout/*.jsp in filter mapping\
any idea?
thanks
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679917
By: tomyeh
According SRV.11.2 (pp 86, Servlet Spec), you can choose only from /x/y/* or *.z. No mix
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3759007
By: nobody
you can try this /layout/*
But I also see other say it can not work becase Tomcat not support mapping chain very well.
Asked: 2006-03-21 04:13:14 +0800
Seen: 268 times
Last updated: Jun 01 '06