-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have a problem: this is my code
<zk>
<panel vflex="1" hflex="1" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init(cfgSensVM)">
<toolbar height="30px" align="start">
<toolbarbutton image="/images/removeFunnel.png" onClick="@command('cleanFilter')" tooltiptext="${labels.filter.clean}" />
<toolbarbutton image="@load(vm.filtersVisible ? '/images/hideFunnel.png' : '/images/showFunnel.png')" onClick="@command('invertFiltersVisibility')"
tooltiptext="@load(vm.filtersVisible ? labels.filter.hideFilters : labels.filter.showFilters)" />
<toolbarbutton image="@load(vm.addIcon)" onClick="@command('modify',page=self.page)" tooltiptext="${labels.toolbar.add.tooltip}" />
</toolbar>
<panelchildren>
<include id="gridInclude" src="/components/fragments/gridSens.zul" />
</panelchildren>
</panel>
</zk>
I have an include in a panelchildren. I want add another include tag to substitute the toolbar because the toolbar component is always the same in all my pages. But if I add another include I have the error "org.zkoss.zk.ui.UiException: Unsupported child for Panel"
How can I solve this problem? I use zk 7.0.0 version
Toolbar isn't supported as child of panel.
You need to put the toolbar under panelchildren
or above panel
.
Greetz Chill.
Asked: 2016-06-06 07:46:33 +0800
Seen: 13 times
Last updated: Jun 06 '16
Thanks to chillworld. I solved inserting a new include inside panelchildren tag.
hancock46 ( 2016-06-06 15:41:35 +0800 )edit