0

Is it possible for iframe-src-page to get the iframe ?

asked 2009-03-02 03:26:28 +0800

evpole gravatar image evpole
481 2

updated 2009-03-02 03:28:01 +0800

//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!

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-03-02 03:29:18 +0800

yuzexu2 gravatar image yuzexu2
222

<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>

link publish delete flag offensive edit

answered 2009-03-02 05:59:54 +0800

evpole gravatar image evpole
481 2

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!

link publish delete flag offensive edit

answered 2009-03-04 05:02:07 +0800

windperson gravatar image windperson
415 1

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.

link publish delete flag offensive edit

answered 2009-03-05 02:15:51 +0800

evpole gravatar image evpole
481 2

that's right!i've tried to get the desktop but it's really another desktop.
Thanks for advise!i'll have a try.

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: 2009-03-02 03:26:28 +0800

Seen: 329 times

Last updated: Mar 05 '09

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