title: NotifyChange dependent on messageBox click ZK
body: <p>I have a template in a grid displaying a list of users. In that template is a button that lets the user be removed from the list. When the user clicks on this button I have a messageBox appear that asks them if they are sure they want to proceed. If "OK" is pressed then the user is removed. I want the list to update so that the user is no longer displayed, but it seems that @NotifyChange is doing nothing. How can I notify the template that the users list has been changed?</p>
  
  <p>Here is the relevant part of the zul:</p>
  
  <pre><code>&lt;grid apply="org.zkoss.bind.BindComposer" sclass="noborder" style="padding: 5px;border:none;background-image:none"
  viewModel="@id('usersVM') @init('projectName.viewmodel.ListUsersViewModel')"
  model="@load(usersVM.users)"
  emptyMessage="No users to display"&gt;
    &lt;template name="model"&gt;
      &lt;row&gt;
          &lt;window&gt;
              &lt;vlayout&gt;
                  &lt;hlayout&gt;
                      &lt;label value="@load(each.fullname)" sclass="f" /&gt;
                  &lt;/hlayout&gt;
              &lt;/vlayout&gt;     
           &lt;/window&gt;
           &lt;button hflex="min" label="Inactivate user" onClick="@command('inactivateUser', user=each)"/&gt;
      &lt;/row&gt;
    &lt;/template&gt;
  &lt;/grid&gt;
  </code></pre>
  
  <p>Here is the relevant part of the view model:</p>
  
  <pre><code>List&lt;User&gt; users = new ArrayList&lt;User&gt;();
  @Command("inactivateUser")
  @NotifyChange("users")
  public void inactivateUser(@BindingParam("user")
  final User user)
  {
      EventListener clickedOK = new EventListener() 
      {
          @Override
          public void onEvent(final Event e)
          {
              if (Messagebox.ON_OK.equals(e.getName()))
              {
                  // remove from users so that they no longer display on this page.
                  users.remove(user);
              }
          }
      };
  
      Messagebox.show("Are you sure you want to inactivate this user?",
              "Message from webpage", Messagebox.OK | Messagebox.CANCEL, Messagebox.NONE,
              clickedOK);
  
  }
  </code></pre>
  
  <p>Note that the variable <code>users</code> is the List of users being displayed by the zul. I have tried adding <code>@NotifyChange</code> to the nested EventListener because I realized control leaves the <code>inactivateUser</code> function before the EventListener is activated, but it did not seem to update the list. I also have tried having the EventListener call a seperate <code>removeUser(User user)</code> function but that also did not notify changes. 
  Thanks for reading.</p>