You are absolutely correct Martin; I can simple read the ad HTML from the file system and have a low-level component inject the ad data into the output. This is a last resort though because as soon as I do this, I lose all the niceties of Tapestry. The intent is for the "ads" (loose term here) to be 1 to 1 marketing type ads as well as dynamic in their own right. Thanks!

Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


----- Original Message ----- From: "Martin Strand" <[EMAIL PROTECTED]>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Sunday, September 24, 2006 9:39 AM
Subject: Re: Equivalent of JSP Includes?


Ads are often static rather than dynamic. Perhaps you can just use Insert
and output raw HTML instead of making each ad a component?

Martin

On Sun, 24 Sep 2006 16:31:12 +0200, 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" <users@tapestry.apache.org>
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]





---------------------------------------------------------------------
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]

Reply via email to