0

Freshly Tabpanel bug?

asked 2008-08-25 13:02:10 +0800

kkurt gravatar image kkurt
300 1 2

Hi;

Is there a bug, in latest (3.5.0-22) freshly build ? Tabpanel's "onselect" event fires while loading page.
as you see after tried the example below. While loading, all alerts shown. Are these alerts should be fired only on selecting panels ?

Please try it

<zk>
<window id="win1">
<hbox spacing="0" width="150px">
<tabbox id="Tab1" onSelect="refresh()" width="780px">
<tabs>
<tab label="Tp1" />
<tab label="Tp2" />
<tab label="Exit" />
</tabs>
<tabpanels>

<tabpanel id="tp1">
</tabpanel>

<tabpanel id="tp2">
</tabpanel>

<tabpanel id="exit">
</tabpanel>
</tabpanels>
</tabbox>
</hbox>
<zscript>

public void refresh() {

if (Tab1.getSelectedPanel().getId().equals("tp1"))
{
alert("tp1");
}
if (Tab1.getSelectedPanel().getId().equals("tp2"))
{
alert("tp2");
}
if (Tab1.getSelectedPanel().getId().equals("exit"))
{
alert("exit");
}
}
</zscript>
</window>
</zk>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-08-25 14:30:47 +0800

kkurt gravatar image kkurt
300 1 2

Another problem ...
if i use "portallayout" includes panel includes a componenet has scroll bar and try to use scroll bar, panel moves...

link publish delete flag offensive edit

answered 2008-08-29 05:29:17 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Would you post this to Bug traker? Thanks.

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: 2008-08-25 13:02:10 +0800

Seen: 176 times

Last updated: Aug 29 '08

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