-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How I obtain a reference to a parent page from a page that is included via include tag?
ex:
on page1: <include id="main" src="page2.zul"/>
on page2 (java code): getParent() does not work, returns null.
how i obtain a reference from page1, inside the page2?
OK. This is a solution. I do know if is efficient but was what I did.
on page1:
page1 = getFellow("page1_id")
main = getFellow("main")
main.getDesktop().setAttribute("page1", page1);
getFellow("main").setSrc("page2");
on page2:
Window page1 = (Window) getDesktop().getAttribute("page1");
Asked: 2009-09-17 01:12:16 +0800
Seen: 206 times
Last updated: Sep 17 '09