0

second tabpanel is not loading if first one is hidden

asked 2014-04-16 12:49:14 +0800

dpchandra gravatar image dpchandra
1 1

updated 2014-04-16 12:57:56 +0800

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.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-04-18 02:16:31 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi dpchandra,

Why not use tab.setSelected(true) instead of setVisible()?

link publish delete flag offensive edit
0

answered 2014-04-17 02:36:37 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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"/>
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: 2014-04-16 12:49:14 +0800

Seen: 29 times

Last updated: Apr 18 '14

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