What you do is wrap the component B in a Block, let's call it C.

You configure component A, passing as a paremter C (i.e, "components.C");

A will have a RenderBlock inside it, use inherited-binding to pass the block
to A's RenderBlock.

You can even do this when the Block is on a completely different page!

Howard

----- Original Message -----
From: "Geoff Longman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 6:23 AM
Subject: [Tapestry-developer] RenderBlock-getting access to wrapped
components


> This ones a bit confusing..this is the first time I've tried using
> RenderBlock
>
> I have a page which embeds a component A contains a RenderBlock and a
> RenderBody.
>
> but I'd like the block to come from a component B that is wrapped by A
(i.e
> inside A's RenderBody)
>
> How does one get access to the components wrapped by the RenderBody?
>
> page.getNestedComponent doesn't work because it looks to the specs and
stops
> when it gets to the RenderBody component.
>
>
> Geoffrey Longman
> Intelligent Works Inc.
>
>
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of 
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) 
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to