-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Can some one tell me
zk difference between $ and @
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
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
Asked: 2012-05-28 14:18:42 +0800
Seen: 235 times
Last updated: May 29 '12