-
FEATURED COMPONENTS
First time here? Check out the FAQ!
//main.zul
<window title="window 1">
<iframe src="innerpage.zul"/>
</window>
//innerpage.zul:
<button onclick="changwintitle()"/>
//i want to change the window tilte for main.zul in this page
is there any way ?
thanks for help!
<window id="win" title="window 1">
<include src="innerpage.zul" parent="${win}"/>
</window>
//innerpage.zul:
<zscript>
Window parentWin = (Window) Executions.getCurrent().getAttribute("parent");
parentWin.setTitle("change");
</zscript>
Thanks for response.
it seems that we have to use include component instead of iframe ?
but in my program, i have many windows ,many iframe and many inner pages.they are all loaded dynamiclly,and every inner page uses databinding.therefore if i use include component instead,there's a conflict between the datebinding initiaters.
is there any way to solve this problem ?
Thanks again!
Hi evpole,
iframe is the same effect of HTML <iframe>, so it is not belong to the same Desktop scope. you have to put the value in session to pass into iframe.
Asked: 2009-03-02 03:26:28 +0800
Seen: 329 times
Last updated: Mar 05 '09