You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alex Zuroff <az...@sbcglobal.net> on 2004/09/04 06:50:02 UTC

RE: Using Tapestry with external HTML files

In case somebody else has the same question, I figured out the first
question (and it didn't require changing any code or creating new Snippet
components) -

The secret - simply use an external-asset to define the location of the
template.

<page-specification class="pages.Home">
    <external-asset name="$template"
URL="http://localhost:8080/opencms/opencms/home.html"/>
	.
	.
	.
</page-specification>

This way, the html people can do whatever they want to the templates in
OpenCMS, and Tapestry pulls it from OpenCMS just fine.

To get .html file from the local file system, just use
"file:///c:/filename.html" as the URL.

Alex 

-----Original Message-----
From: Danny Mandel [mailto:dmandel@tolweb.org] 
Sent: Friday, August 20, 2004 11:40 AM
To: Tapestry users
Subject: Re: Using Tapestry with external HTML files

In response to question 1, I'm unaware of any pre-built Tapestry stuff that
does that.  It was quite easy to do something like that manually, though. 

I work with 2 other people who do their web design using Dreamweaver.  
They drop their new Dreamweaver templates into a location onto the
filesystem, and voila, they are deployed into our Tapestry app.

Maybe I missed the pre-built stuff, but it didn't take long at all to write
my own.

Hope that helps,
Danny

azuroff@sbcglobal.net wrote:

>I just discovered Tapestry a few days ago, and after years of web-app 
>programming, I think I've found web-app nirvana.  What's the catch?  It 
>can't be as good as it seems.  :)
>
>Since I'm new to all this, I had a couple of general questions -
>
>1. Can Tapestry read .html files that exist outside the webapp's .war file?
>Either from a CMS (ideal) or even the file system?  The reason I ask is 
>that we don't want to rebuild and redeploy the .war file every time 
>marketing wants to change a couple of words in a file (and this happens 
>a lot).  If this can't be done, would it be very difficult to add this
functionality?
>
>2. I know this has been asked before, but perhaps things have changed 
>recently - Is there any way to selectively tell Tapestry that a 
>particular html template has changed and to reload it (w/o restarting 
>the servlet container)?  I've know that you can disable caching on a 
>global level, but I don't think we'd want to do that for production.
>
>Thanks,
>Alex
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org