Revision history [back]

click to hide/show revision 1
initial version

asked 2017-01-09 08:33:35 +0800

aliabbas gravatar image aliabbas

Command send to wrong viewModel in nested case

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"

Command send to wrong viewModel in nested case

Hello I am facing a problem, I am using two vm in zul file. 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')">
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')"/>

onClick="@command('othercommand')"/> </window>

</window> </window> I want to call "othercommand" from "net.ParentVm"

Command send to wrong viewModel in nested case

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>

</window> I want to call "othercommand" from "net.ParentVm"

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More