1

How to Hide/Show two pages

asked 2015-02-04 13:32:59 +0800

sjoshi gravatar image sjoshi flag of India
3508 1 8
http://zkframeworkhint.bl...

I have a Tab Which showing A.Zul file now in A.zul i have a button like ShowBPage and i when user click on this button i am showing B.zul page to user in place of A.zul by the following code

Components.removeAllChildren(currentView);
Executions.createComponents("B.zul", currentView, args);

Now in B.zul i have button when user click on that I have to show A.zul again

In B.zul file method i have also done

 Components.removeAllChildren(currentView);

But i do not want to do

Executions.createComponents("A.zul", currentView, args);

Because A.zul afterCompose() have plenty of arguments which are not available in B.zul file. Can someone please guide how to achieve this . Without calling Executions.createComponents()

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-04 15:17:00 +0800

chillworld gravatar image chillworld flag of Belgium
5257 3 9
https://github.com/chillw...

Sjoshi,

If your controller of the tab is also the controller who execute the code, you can hold the children before removing them.

As you switch back to A you can just put back the children what already created.

This is just a quick thinking and not tested solution. I don't have the time atm to work out a complete fiddle where I can show it. If you can already set up a fiddle how you do it now I could maybe find the time to change it.

Greetz chill.

link publish delete flag offensive edit

Comments

Thanks I have done with Visible attributes

sjoshi ( 2015-02-05 10:08:52 +0800 )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: 2015-02-04 13:32:59 +0800

Seen: 12 times

Last updated: Feb 04 '15

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