0

zk difference between $ and @

asked 2012-05-28 14:18:42 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Can some one tell me
zk difference between $ and @

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-05-29 08:04:00 +0800

hawk gravatar image hawk
3225 1 5
http://hawkphoenix.blogsp... ZK Team

Hi,
$ is used in EL expression.
please refer to http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Composing/ZUML/EL_Expressions

@ is used in data binding.
please refer to http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/MVVM/Data_Binding

link publish delete flag offensive edit

answered 2012-05-29 22:00:23 +0800

twiegand gravatar image twiegand
1807 3

Senthilchettyin,

The easiest way to think about the differences between $ and @ is:

    >>  $ is evaluated one time and very early in the page life cycle.  It useful for one-way data communication only (e.g. data changed on the UI does not get reflected at the server).
    >>  @ is evaluated later in the life cycle and on an almost constant basis (you can change this).  It is extremely useful for two-way data communication in that changes done on one side (e.g. UI) get almost immediately reflected in the other side (e.g. server).

Hope that helps,

Todd

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: 2012-05-28 14:18:42 +0800

Seen: 235 times

Last updated: May 29 '12

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