-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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()
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.
Asked: 2015-02-04 13:32:59 +0800
Seen: 13 times
Last updated: Feb 04 '15
ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer
Power of ZK Calender With Charts 2 and Other Components
ZK7 atlantic theme: vlayout/hlayout spacing
Structuring zul-code without includes?
css zk 7.0.3 with ie9 not work
Change listbox MVVM template with Java or how to let user change column order