-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Currently I am using ZK 7.0.1.
If I make my first tab and tabpanel visible="false", the second tabpanel's content is not loading at the first time. I am able to see the second tab but not the content. When I click on second tab then only content is showing.
My code is like below.
<zk>
<tabbox>
<tabs>
<tab id="first" label="First Panel" closable="false" visible="false"/>
<tab id="second" label="Second Panel" closable="false" visible="true"/>
</tabs>
<tabpanels>
<tabpanel visible="false">
First Panel
</tabpanel>
<tabpanel visible="true">
Second Panel
</tabpanel>
</tabpanels>
</tabbox>
</zk>
I have tested this with fresh 7.0.2 jars also but not working.
Hi dpchandra,
It's a ZK bug, http://tracker.zkoss.org/browse/ZK-2259
the workaround for this, is to set selected to "true" on 2nd tab
<tab id="second" label="Second Panel" selected="true" closable="false" visible="true"/>
Hi dpchandra,
Why not use tab.setSelected(true) instead of setVisible()?
Asked: 2014-04-16 12:49:14 +0800
Seen: 29 times
Last updated: Apr 18 '14
How to Get ViewModel From a Tab class? [closed]
issue creating dynamic tabs via controller #2
issue creating dynamic tabs via controller #1
enhancement needed in scrolling tab in tabbox using javacode
Tabbox with Toolbar: how do I give the Toolbar all available space?
Tabbox and Notifications issue
Issue in Tab close event enhancement