Ohh, I see...

If we take Navin's example and assume that your blocks are in MyBlocks page:
<span jwcid="[EMAIL PROTECTED]"><span jwcid="@Insert"
value="ognl:testValue"/></span>

then the 'testValue' property will be called on MyBlocks,
MyBlocks.getTestValue().

The only interaction, that I'm aware of, between MyBlocks and other pages is
like this:
 
<!-- somwhere not in MyBlocks -->
<del wcid="[EMAIL PROTECTED]" block="ognl:MyBlocks.components.block1"
param1="prop:testString" />
 
Note the use of an informal parameter 'param1'.

In MyBlocks page you can access this informal parameter like this:
 
Block theBlock = (Block) getComponent("block1");
IComponent invoker = theBlock.getInvoker(); // Will point to
[EMAIL PROTECTED]
String parameter1 = (String) invoker.getBinding("param1").getObject();
 
 
Regards,
 
</Firas>
 

-----Original Message-----
From: Karthik N [ <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 3:40 PM
To: Tapestry users
Subject: Re: Question regarding Block/RenderBlock

Hi Navin,

You are right.  That is exactly my doubt/question.  How do OGNL bindings
work for nested components inside a Block that is a part of a different page
and NOT the page that is currently being rendered.

Thanks, Karthik

On 11/9/06, B.S.Navin <[EMAIL PROTECTED]> wrote:
>
> Hi Firas,
>
> I think, what Karthik meant by point 2 is something like below:
>
> <span jwcid="[EMAIL PROTECTED]">
>         <span jwcid="@Insert" value="ognl:testValue"/> </span>
>
> Here you can see that the content of the block has a binding to a
> property "testValue". So, which page will this binding be pointing to?
>
> - Navin
>
>

Reply via email to