-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3605305
By: jim_bo_lisa
Lesson learned. If you are using the <include src="foo.zul", null, null> You will not be able to get references to the fellow components of your page or parent window via the following Path.getComponent() method call.
Component component = Path.getComponent("/fooWindowId");
What I had to do was use the following Executions.createComponents call so the above getComponent() call would work and I could reference all of the fellow page components:
<zscript>
(Window) Executions.createComponents("/foo.zul", null, null); </zscipt>
Thought I'd share.
Jim
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3605801
By: tomyeh
Thanks for your sharing.
Can you please suggest me that is there any possibility to call a flow controller action instead of action.
Example :
Executions.createComponents("modCompany", tabpannel, null);
Where "modCompany" is the Spring Web Flow controller.
Please help me inthis regard.
Regards,
Kishore
Hang on hang on, you guys have lost me.
I'm using include files to manage all "pages" within my application. Are you saying that instead of using an include file, I should use Executions.createComponents(...);
Every page I have (.zul) is backed by a GenericForwardComposer, so I usually just say:
incInclude.setSrc("page2.zul") and the rest is done for me.
How would I mimic a similar situation without using include files?
Thanks,
Mark
Tbh, instead of the include... i always prefere the fulFill attribute:
<div fulfill="=~./yourcontext/yourFile.zul" />
if you want to load something under the package web.yourcontext.
So you can always decide when or when not to brake the parent SpaceID.
Gio
Oh, great... so basically the result is the same (i.e. including another page) but with <include> I break SpaceID and might suffer a bit to manage further UI interactions (I know, I used it) whereas with <div fulfill="..." .../> you do not break anything... how nice, lesson learnt!
Thanks,
S
Awesome!
Asked: 2006-03-01 19:09:16 +0800
Seen: 5,437 times
Last updated: Oct 20 '11