Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible use @NotifyChange instead of BindUtils.postNotifyChange?
    primarykey
    data
    text
    <p>I have one confusion use between @NotifyChange and BindUtils.postNotifyChange ,Why use this two event .Before i read this question <a href="https://stackoverflow.com/questions/14400964/in-zk-can-we-postnotifychange-more-than-one-variable">In ZK Can we PostNotifyChange more than one variables</a> . But i cant understand this question why use this more than one variable.</p> <p>Here's an example:</p> <pre><code> @Command @NotifyChange({ "folderInfoList", "isDisabled", "selectedFolderInfo" }) public void refreshFolderInfo() { logger.debug("Refresh Icon selected"); if (isDirty()) { Messagebox.show(pageResourceBundle.getText("JS_CONFIRM_DATAMODIFED"), pageResourceBundle.getText("JS_CONFIRM_DATAMODIFED_TYPE"), Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION, new EventListener&lt;Event&gt;() { public void onEvent(Event event) throws Exception { if (Messagebox.ON_OK.equals(event.getName())) { loadFolderInfoList(); selectedFolderInfo = null; BindUtils.postNotifyChange(null, null, FolderInfoEditViewModel.this, "folderInfoList"); } else { } } }); } else { loadFolderInfoList(); selectedFolderInfo = null; } } </code></pre> <p>Can anybody tell me:</p> <p>I have four question :</p> <p>1.Why use isDisabled in @NotifyChange ?</p> <p>2.Here this method i can use @NotifyChange instead of BindUtils.postNotifyChange ?</p> <p>3.What is the difference between @NotifyChange and BindUtils.postNotifyChange ?</p> <p>4.I want to use only one event between this two @NotifyChange and BindUtils.postNotifyChange in method .Is it possible for this method ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload