Revision history [back]

click to hide/show revision 1
initial version

answered 2017-06-29 07:03:03 +0800

MDuchemin gravatar image MDuchemin

ZK Team

+1 on Justin answer, you can't @Wire a component above the component on which your composer is applied

<div id="comp1">
 <div apply="MyComposer">
   <div id="comp2">
    ...

You can wire component comp2, but not component comp1 from MyComposer

Depending on your include mode, setti

+1 on Justin answer, you can't @Wire a component above the component on which your composer is applied

<div id="comp1">
 <div apply="MyComposer">
   <div id="comp2">
    ...

You can wire component comp2, but not component comp1 from MyComposer

Depending on your include mode, settisetting a composer on a higher element can work. If that's not an option, you could also fire events from the inner composer to an outer composer (see the ZK Event queues documentation on how to fire events and listen to events from each composer.) https://www.zkoss.org/wiki/ZKDeveloper'sReference/EventHandling/EventQueues

The basic idea is: in outer composer (root level composer), during afterCompose, create an event listener on a desktop scope event queue of your choice. In the inner composer, when relevant, fire an event with the relevant data in the same event queue.

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