-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a view with a composer that composer is using a HtmlMacroComponent to create several listboxes that macroComponent is using also a composer in the listbox i have this code
if="${$composer.pantallaParaDetalle}"
But a error states pantallaParaDetalle is not part of the composer but this property is in the HtmlMacroComponent composer how can i do that or set the composer to the HtmlMacroComponent and not the view general composer thanks a lot.
Hi Javiut,
As you found the default composer variable is $composer
.
If you want to reference a specific composer you can either user the extended syntax - id$composer
- using the component-id as a prefix, or specify a composerName
in a <custom-attributes>
element.
<div id="compA" apply="some.package.ComposerA">
<div id="compB" apply="some.package.ComposerB">
<div if="${compA$composer.pantallaParaDetalle}">
some detail
</div>
</div>
</div>
<div apply="some.package.ComposerA">
<custom-attributes composerName="myCompA"/>
<div apply="some.package.ComposerB">
<div if="${myCompA.pantallaParaDetalle}">
some detail
</div>
</div>
</div>
These options also are described in our composer documentation page.
Robert
Asked: 2018-01-09 00:07:17 +0800
Seen: 14 times
Last updated: Jan 09 '18
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate