Hello Norbi,

I used this ognl expression: components.MyBlock.invoker.page.someProperty

and it worked like a charm. Thank you!

</Firas>

-----Original Message-----
From: Norbert Sándor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 11:46 AM
To: Tapestry users
Subject: Re: @Block, accessing the caller's properties

Check out Block's getInvoker() method.
Try

    blockComponent.getInvoker().getPage().getSomePageProperty()

Regards,
Norbi

Firas Adiler wrote:
> Hello,
>  
> Can a Block-component access the page/component that's calling
RenderBlock?
>  
> Assume page C contains this call: jwcid="@RenderBlock"
> block="ognl:someBlock"
>  
> Can someBlock access page C's properties?
>  
>  
> Thanks for your time!
>  
> </Firas>
>
>   
> ----------------------------------------------------------------------
> --
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.8/414 - Release Date:
2006.08.09.
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to