0

Does ZK allow to have one tabbox into another?

asked 2009-11-03 06:34:02 +0800

Kogelet gravatar image Kogelet
33 1 2

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>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-11-03 07:20:04 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

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.

link publish delete flag offensive edit

answered 2009-11-03 08:42:10 +0800

Kogelet gravatar image Kogelet
33 1 2

Upps... what a silly of me! Thanks a lot!

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-11-03 06:34:02 +0800

Seen: 548 times

Last updated: Nov 03 '09

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