0

ZKOSS 5.0.14 - bug in json producer?

asked 2014-10-01 13:07:07 +0800

abcd123 gravatar image abcd123
17 3

updated 2014-10-01 13:09:47 +0800

Hello,

when using <include> component in defer mode ( <include mode="defer"/> ) zkoss malforms json sent from the server to zkoss client ( triggered by a click on one of the buttons on the page with include component ), by inserting extra commas:

 [
         "addChd",
         [
            "zMBPj2",
 ,
            [
               'zhtml.Widget',
               'zMBPha',
               {
                  prolog:'<ul id="zMBPha">',
                  epilog:'</ul>'
               },
               [ ]
            ]
         ]   
 ]

This results in SyntaxError on the client.

If the mode attribute is not set - i.e. it defaults to the other mode, the problem dissapears.

Is this a known issue? Can somebody advice how to get rid of the problem?

Regards.

delete flag offensive retag edit
Be the first one to answer this question!
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
2 followers

RSS

Stats

Asked: 2014-10-01 13:07:07 +0800

Seen: 3 times

Last updated: Oct 01 '14