-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have an index.zul which has an include component. I give MainIndex.zul as the source page for the include component.
I again have two include components inside MainIndex.zul which are changed dynamically to point to different sources based on certain conditions.
I get a null object when i use path.getComponent for the include components present in MainIndex.zul.
The path given is path.getComponent"//mainIndex/menuWindow/xcontents"); which is exactly the path for include component.
Any pointers as to why this is happening ?
Any help would be much appreciated.
Thanks
Hi adarshcu,
Please specify the Include mode as defer, or using Path.getComponent("//indexPageId/includeId/menuWindow/xcontents").
For more infomation please refer to the following link:
http://books.zkoss.org/wiki/ZK_Component_Reference/Essential_Components/Include#Defer
Hi matthewgo,
I'll look at the example provided there. Thanks. But i got this working as the component was bound to the composer class of the pages that were included dynamically. Still not sure as to why that happened. Need to dig deep on this aspect.
Thanks.
Asked: 2011-12-23 13:13:15 +0800
Seen: 176 times
Last updated: Dec 27 '11