-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3532692
By: matteo_barbieri
I've problems accessing pages dinamically included.
For example, if I have:
<include src='/page.zul' />
I can access it in the window code by calling
this.getDesktop().getPage('page')
but if do this:
<include id='inc' />
and in the code
this.getFellow('inc').setSrc('/page.zul');
this.getDesktop().getPage('page');
It doesn't find the page.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3534036
By: tomyeh
The include component includes the specified URL in the redering phase (see User Guide). In other words, when your second statement executes, the page is not created yet.
To create components immediately, use Executions.createComponents. They are plenty of ways to create components by loading from another ZUML page, from direct content...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3536301
By: matteo_barbieri
I would prefere to use Include and easily change src to switch between View-Edit pages.
Is there something like
myInclude.setSrc('page.zul');
myInclude.updateSrc();
?
Bye
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3536360
By: tomyeh
No.
The include component could include anything, and we know it only in the rendering phase. For better performance, the rendering phase must be the last step (such that we could optimize redudant update).
Maybe we could have another component that include only the ZUML pages, such that it could use createComponents to do the job. But it adds confusion to what components to use.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3536534
By: matteo_barbieri
> Maybe we could have another component that include only the ZUML
> pages,
I've wrote such a component (IncludeZul).
Thank you.
Asked: 2006-01-20 13:48:24 +0800
Seen: 564 times
Last updated: Jan 23 '06