-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Trying to put horizontal tabbox into vertical, I am getting an exception "org.zkoss.zk.ui.UiException: <Tab tab1> doesn't allow any child"
<tabbox width="100%" id="outside_tab">
<tabs height="150px">
<tab id="tabFX" label="Label1">
<iframe>
<tabbox id="inside_tab" orient="vertical">
<tabs>
<tab label="label2"> </tab>
</tabs>
</tabbox>
</iframe>
</tab>
<tab label="Label3"></tab>
<tab label="Label4"></tab>
<tab label="Label5"></tab>
</tabs>
</tabbox>
You have not constructed the tabbox correctly.
Apply your logic to this basic example, taken from http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Components_Tabbox:
<zk> <tabbox width="400px"> <tabs> <tab label="Tab 1" /> <tab label="Tab 2" /> </tabs> <tabpanels> <tabpanel>This is panel 1</tabpanel> <tabpanel>This is panel 2</tabpanel> </tabpanels> </tabbox> </zk>
Put your inner tabbox in one of the tabpanels because those are the contents of each tab.
Asked: 2009-11-03 06:34:02 +0800
Seen: 548 times
Last updated: Nov 03 '09