yes, I accept the answer, sorry how to close the question , thank
progamerdotcom ( 2013-02-18 15:32:00 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Still working in mstRoleAccess.zul && MstRoleAccessVM
<grid>
<columns visible="false">
<column width="100px" />
<column width="200px" />
<column width="100px" />
</columns>
<rows>
<row>
<cell>Role Id</cell>
<cell><textbox value="@bind(vm.current.vroleid)" type="text" focus="true" /></cell>
<cell><button label="LOV Role" /></cell>
</row>
<row>
<cell>Menu Id</cell>
<cell><textbox value="@bind(vm.current.vmenuid)" type="text" /></cell>
<cell><button label="LOV Menu" /></cell>
</row>
<row>
<cell>Status</cell>
<cell><textbox value="@bind(vm.current.vstat)" type="text" /></cell>
</row>
<row>
<cell colspan="3">
<space width="100px" />
<button label="Save" onClick="@command('save')" image="/image/iconcrud/btn_save.gif" />
<button label="Reset" onClick="@command('reset')" image="/image/iconcrud/btn_reset.gif" />
<button label="Search" onClick="@command('search')" image="/image/iconcrud/btn_search.gif" />
</cell>
</row>
</rows>
</grid>
I want to make a LOV of a master data (such as MasterRole or MasterMenu), when user click "LOV Role" button then shows a window that contents listbox of roles, and if user chooses a row of listbox then this LOV window close automatically and fill textbox of vroleid.
thanks alot, && sorry for my english
See Here i made a example it will help you to use binding in your code also
its works,, thank sjoshi.
@Command("openPopRole")
public void openPopRole(@ContextParam (ContextType.VIEW) Component view){
Executions.getCurrent().createComponents("/popup/popupRole.zul", view, null);
}
@SuppressWarnings("rawtypes")
@Command("choose")
public void choose(@ContextParam (ContextType.VIEW) Component view){
Map param = new HashMap();
param.put("roleParam", current);
Binder bind = (Binder) view.getParent().getAttribute("binder");
if (bind == null) return;
bind.postCommand("sendParamRole", param);
view.detach();
}
thanks
yes, I accept the answer, sorry how to close the question , thank
progamerdotcom ( 2013-02-18 15:32:00 +0800 )editAsked: 2013-02-15 02:06:18 +0800
Seen: 26 times
Last updated: Feb 16 '13
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]