Ah, then you definitely want to use RenderBlock.

http://tapestry.apache.org/tapestry4.1/components/RenderBlock.html

On 9/24/06, Mike Grundvig <[EMAIL PROTECTED]> wrote:

But how can you dynamically define the component name? I have 20-30 custom
components (each one is an ad) and one template for the whole site with
spots for 6 components. The site has an external tool to manage which page
has which of the 20-30 components in what location. I want to know how to
do
that dynamically in Tapestry. Basically, I really want to maintain only a
single template for the site but still show different components in
places.
Thanks!

Michael

----- Original Message -----
From: "Jesse Kuhnert" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Sunday, September 24, 2006 9:21 AM
Subject: Re: Equivalent of JSP Includes?


>I usually do something like:
>
> <span jwcid="@MyCustomComponentName" />
>
> On 9/24/06, Mike Grundvig <[EMAIL PROTECTED]> wrote:
>>
>> How do you do the little snippet below in Tapestry?
>>
>> <%
>>     // This could be any code needed, but it results in a specific page
>>     String pageToInclude = "blah.html";
>> %>
>>
>> <jsp:include page="<%=pageToInclude%>">
>>
>> Thanks!
>>
>> Michael Grundvig
>> Electrotank, Inc
>> http://www.electrotank.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>



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




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to