-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
+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
2 | No.2 Revision |
+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.