0

after upgrade from 5.0.14 to 6 data binding does not work

asked 2014-10-06 15:46:39 +0800

abcd123 gravatar image abcd123
17 3

Hello,

after the upgrade, when displaying following *.zul

<window border="normal" id="messageLogin" width="700px">
            <grid id="gdMessageLocation"
            model="@{messageLogin$composer.messages}" width="700px"
            oddRowSclass="none-odd" fixedLayout="true" sclass="accountTable">
            <columns visible="false">
                <column width="140px" />
                <column align="left" />
                    <column width="70px" align="left" />
....

the @{messageLogin$composer.messages} evaluation does not acces the getMessages() method in the composer = data binding does not work. The composer is a subclass of GenericForwardComposer. Note that I have set both org.zkoss.zk.ui.composer.autowire.zscript and org.zkoss.zk.ui.composer.autowire.xel to true.

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-10-11 13:52:38 +0800

Darksu gravatar image Darksu
1991 1 4

Hello abcd123,

From the provided code, i noticed that you have not associated it with a controller.

Please look at the provided url for more information:

http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/MVC/Controller

*Note. You should also recheck your two custom properties at the following url:

http://www.zkoss.org/javadoc/7.0.3/zk/org/zkoss/zk/ui/util/GenericForwardComposer.html

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-10-06 15:46:39 +0800

Seen: 9 times

Last updated: Oct 11 '14

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