1

More include in a panel

asked 2016-06-06 07:46:33 +0800

hancock46 gravatar image hancock46
13 3

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

delete flag offensive retag edit

Comments

Thanks to chillworld. I solved inserting a new include inside panelchildren tag.

hancock46 ( 2016-06-06 15:41:35 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-06-06 09:40:31 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Toolbar isn't supported as child of panel.
You need to put the toolbar under panelchildren or above panel.

Greetz Chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-06-06 07:46:33 +0800

Seen: 13 times

Last updated: Jun 06 '16

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