-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The below is working
@Command
@NotifyChange("selectedRecord")
public void onSelectLocationLookup(
@BindingParam("selectedRecord") Location location) {
if (location!=null)
this.selectedRecord.setLocationCode(location.getCode());
}
But if want to notify only particular as follow, then not firing
@Command
@NotifyChange("selectedRecord.locationCode")
public void onSelectLocationLookup(
@BindingParam("selectedRecord") Location location) {
if (location!=null)
this.selectedRecord.setLocationCode(location.getCode());
}
Even i tried with selectedRecord.LocationCode
Hi Senthil,
in your case you can invoke BindUtils.notifyChange programmatically like this:
@Command
public void onSelectLocationLookup(
@BindingParam("selectedRecord") Location location) {
if (location!=null) {
this.selectedRecord.setLocationCode(location.getCode());
BindUtils.postNotifyChange(null, null, this.selectedRecord, "locationCode");
}
}
regards,
Robert
Oh Thank you robert. I just wonder, why ZK is not allowed to do the same using notifychange annotation
Sorry benbai. When i click the arrow button, i thought the popup will show all the list items
Asked: 2013-11-01 11:04:43 +0800
Seen: 63 times
Last updated: Nov 04 '13
MVVM Notifychange works only along with @Command ?
Upload csv files with Zk framework
Create notification icon with zk 7 CE
@NotifyChange not refresh textbox
how can i get data from another page
Notify Form of property change
ZK Listbox Can we Notify only Single Column Value?