-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I've tried the excellent JS merge feature, but unfortunately it breaks my doublebox, I can't input chars "." and ",".
On the smalltalk there is something about a specific order of packages, but don't tell the correct order, so I just copied the order from the example based on the .dsp.
<javascript package="zk.fmt" merge="true"/> <javascript package="zul.mesh" merge="true"/> <javascript package="zul.utl" merge="true"/> <javascript package="zul.menu" merge="true"/> <javascript package="zul.wnd" merge="true"/> <javascript package="zul.tab" merge="true"/> <javascript package="zul.inp" merge="true"/> <javascript package="zul.box" merge="true"/> <javascript package="zul.sel" merge="true"/> <javascript package="zul.grid" merge="true"/> <javascript package="zul.layout" merge="true"/>
Please advise.
Thanks and regards,
Madruga
Hi,
The merge attribute is used for lang-addon.xml not for *.dsp. In the *.dsp, you should use the following example,
<%@ page contentType="text/javascript;charset=UTF-8" %> <%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" %> ${z:setCWRCacheControl()} <c:include page="~./js/zk.fmt.wpd"/> <c:include page="~./js/zul.mesh.wpd"/> <c:include page="~./js/zul.utl.wpd"/> <c:include page="~./js/zul.layout.wpd"/> <c:include page="~./js/zul.wnd.wpd"/> <c:include page="~./js/zul.tab.wpd"/> <c:include page="~./js/zul.inp.wpd"/> <c:include page="~./js/zul.box.wpd"/> <c:include page="~./js/zul.sel.wpd"/> <c:include page="/userguide/macros/category.js"/>
Hi Jumper,
Maybe I didn't made myself clear as I used it on lang-addon.xml as specified. Just the order of the packages that I took from the .dsp example.
But then I removed the config from lang-addon.xml to see the order that the packages were being requests, and then used the same order the appeared on firebug.
I analyzed the request with firebug, and it's merging as expected, as I only see the 2 packages zk.wpd and the i18n one.
But the problem with number formatting still exists (doublebox won't accept "." neither '," chars (I type in the kbd but nothing appears in the input).
Hi,
You can't include zul.inp into your lang-addon.xml, because it has to be loaded after zul.lang.wpt(i18n).
By the way, I will add this restriction on our document.
By the way, this side-effect will be fixed in the next release.
Asked: 2010-09-02 08:32:25 +0800
Seen: 436 times
Last updated: Sep 06 '10