0

Javascript merge feature breaking number formatting

asked 2010-09-02 08:32:25 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

updated 2010-09-02 08:35:05 +0800

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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-09-02 20:19:28 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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"/>

link publish delete flag offensive edit

answered 2010-09-02 21:08:19 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

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).

link publish delete flag offensive edit

answered 2010-09-05 20:55:22 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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.

link publish delete flag offensive edit

answered 2010-09-06 02:54:32 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

By the way, this side-effect will be fixed in the next release.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-09-02 08:32:25 +0800

Seen: 436 times

Last updated: Sep 06 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More