-
Bug
-
Resolution: Fixed
-
Normal
-
6.0.2, 6.5.0
-
None
public class MyViewModel implements Serializable { private String msg; @Init public void init() { } @Command @NotifyChange("msg") public void doLoginUser() { msg = "Login User" + new Date(); } public String getMsg() { return msg; } }
<zk> <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm')@init('org.zkoss.test.cluster.ZKClusterMVVM.MyViewModel')" title="Hello Spring Secuirty" border="normal" width="400px"> <vlayout> <button label="click (need to login otherwise will not bind event)" onClick="@command('doLoginUser')"></button> <groupbox> <caption label="massage"/> <label value="@load(vm.msg)"/> </groupbox> </vlayout> </window> </zk>