0

Call zul page after clicking on tab.

asked 2012-06-14 10:39:58 +0800

manishashrm gravatar image manishashrm
195

Hi All,

I want to create a tab box like "http://books.zkoss.org/wiki/ZK_Component_Reference/Containers/Tabbox/Tabpanel" .

but instead of writing " this is a panal 1 " and " this is a panal 2"

It should open new zul page . Means When i am clicking on TAB 1 --> it should open index.zul page

NOTE: But it should not open in window . It sholud open the page exactly below of tab.

please help me to do this


Thanks in advance

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-06-14 11:03:15 +0800

MontyPan gravatar image MontyPan
435 3
http://xitop.blogspot.com...

Maybe <include> component will fit you requirement.

link publish delete flag offensive edit

answered 2012-06-14 11:58:22 +0800

Arsen gravatar image Arsen
384 5

Or like this

tabpanel.getChildren().clear();
tabpanel.appendChild(Executions.createComponents("/index.zul", null, null));

link publish delete flag offensive edit

answered 2012-06-14 12:18:19 +0800

gersonlc gravatar image gersonlc
129 1

Or still (same effect of Arsen's way):

Map params = <...>;
Tabpanel   tpParent = <...>;
tpParent.getChildren().clear(); // to clear old children components
Executions.createComponents("/index.zul", tpParent, params));

link publish delete flag offensive edit

answered 2012-06-14 13:17:37 +0800

manishashrm gravatar image manishashrm
195

Thanks Arsen and gersonlc..

can u plz provide me the detail code.

I am new to this , so unable to solve the above query.

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: 2012-06-14 10:39:58 +0800

Seen: 105 times

Last updated: Jun 14 '12

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