I have this code in zk:
@Command
public void showModal(@BindingParam("languageContributionStatus") UserStatus mnoList) {
//create a window programmatically and use it as a modal dialog.
final HashMap<String, Object> map = new HashMap<String, Object>();
setPickedItemSet(mnoList.getMnoList());
map.put("mnoList", mnoList.getMnoList());
win = (Window) Executions.createComponents("/comListMnosUser.zul", null, map);
win.doModal();
}
In this code i have a page and i create a window with other page, in my other page:
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="CreateList" border="normal" mode="modal" width="320px"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.UserMno')">
<label value="First Name"></label>
<listbox model="@bind(vm.allMno)" checkmark="true" multiple="true" selectedItems="@bind(vm.mnoList)"/>
<button id="SaveBtn" hflex="1" label="Save" onClick="@command('save', mnosL=vm.mnoList)" />
</window>
</zk>
Then i need save the variable mnoList to use in the previous page, but i can not use Excecution.createComponent, because i need only close the window because i have win.doModal();
And use the variable mnoList, but i do not know how can i pass this variable to use in the other page.
Somebody can help me??