-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello I am facing a problem, I am using two vm in zul file.
<window apply="org.zkoss.bind.BindComposer"
viewModel="@id('vmparent') @init('net.ParentVm')">
<window apply="org.zkoss.bind.BindComposer"
viewModel="@id('vmchild') @init('net.ChildVm')">
<button label="othercommand" onClick="@command('othercommand')"/>
</window>
</window>
I want to call "othercommand" from "net.ParentVm"
Hello aliabbas,
Did you try using a Global Command?
http://books.zkoss.org/zk-mvvm-book/8.0/databinding/globalcommand_binding.html
Best Regards,
Darksu
Asked: 2017-01-09 08:33:35 +0800
Seen: 31 times
Last updated: Jan 09 '17
ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer
Power of ZK Calender With Charts 2 and Other Components
ZK7 atlantic theme: vlayout/hlayout spacing
Structuring zul-code without includes?
css zk 7.0.3 with ie9 not work
Change listbox MVVM template with Java or how to let user change column order