(If I don't misunderstand your question:)
Only instantiated components (which are part of a page) can be referenced.
If you add a component to the app. spec. then it is not an instance, it is
only a component type, so it's not possible to reference it.
So I think the dummy page approach is not a bad idea. For example the dummy
page may contain Blocks which can be rendered using RenderBlock in another
page.
(You can access the dummy page in OGNL:
page.requestCycle.getPage("dummyPageName").components.SomeOtherComponent)
Br,
Norbi
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, June 14, 2005 9:37 AM
Subject: getting a component reference
I am trying to pass a reference to a component as a parameter to another
component. The component I would like to pass is not declared in the
current page, not explicitly and not implicitly. (I added it to the
.application spec, though).
So unfortunaltly I can't do <span jwcid="@SomeComponent"
otherComponent="ognl:components.SomeOtherComponent"/>
Sp please, how can I reference a component in ognl, that is part of the
application, but not part of the current page.
(I thought of adding a "dummy page" to the application, that only
contains the other component, because then I can obtain a reference, but
that does not seem to be a clean approach to me).
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]