0

Executions.createComponents vs include

asked 2006-03-01 19:09:16 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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


delete flag offensive retag edit

10 Replies

Sort by ยป oldest newest

answered 2006-03-02 01:39:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3605801

By: tomyeh

Thanks for your sharing.

link publish delete flag offensive edit

answered 2010-07-15 01:25:38 +0800

pandukish gravatar image pandukish
68 1 1 4

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

link publish delete flag offensive edit

answered 2010-07-15 01:56:14 +0800

PeterKuo gravatar image PeterKuo
481 2

@pandukish
http://www.zkoss.org/javadoc/5.0/zk/org/zkoss/zk/ui/Executions.html

Executions.createComponents doesn't support such parameter.

link publish delete flag offensive edit

answered 2010-07-15 03:05:29 +0800

pandukish gravatar image pandukish
68 1 1 4

May I know is there any possibility.

link publish delete flag offensive edit

answered 2010-07-15 19:50:34 +0800

PeterKuo gravatar image PeterKuo
481 2

@pandukish
You should try to make "modCompany" a kind of parameter that Executions.createComponents support.

link publish delete flag offensive edit

answered 2010-10-30 15:07:48 +0800

ridams gravatar image ridams
6

Executions.createComponents

link publish delete flag offensive edit

answered 2011-07-20 07:06:34 +0800

SparkySpider gravatar image SparkySpider
444 1 3

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

link publish delete flag offensive edit

answered 2011-07-20 07:17:47 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

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

link publish delete flag offensive edit

answered 2011-07-22 07:36:30 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

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

link publish delete flag offensive edit

answered 2011-10-20 09:22:41 +0800

SparkySpider gravatar image SparkySpider
444 1 3

Awesome!

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: 2006-03-01 19:09:16 +0800

Seen: 5,437 times

Last updated: Oct 20 '11

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