You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2005/08/27 04:14:08 UTC

hot-deploying html templates

Hi,

It seems that to support hot-deploying of html templates based 
on timestamps, the required changes are localized in a single
class: TemplateSourceImpl. Instead of returning a ComponentTemplate
from various template locating methods, they may return a Resource
instead. Then one can get an URL from the Resource, open a
connection and get the last modified time.

Do you think this approach will work?

--
Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)



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


Re: hot-deploying html templates

Posted by Howard Lewis Ship <hl...@gmail.com>.
That's vaguely the approach I'm hoping to persue. It gets complicated,
with multiple templates per component (localized templates) and the
way in which specification data (from XML) gets interweaved with HTML
template and even annotations.

Say you have a component Foo with a template and an XML: specification
file.  Any change to either the template or the XML requires
invalidating any page or components that uses the Foo component,
recursively.

To do it right requires a smarter object pool as well, since if at the
moment of invalidation, there are affected pages checked out of the
pool, it will be necessary to recognize and discard those pages when
detached from their request cycles.

On 8/26/05, Kent Tong <ke...@cpttm.org.mo> wrote:
> Hi,
> 
> It seems that to support hot-deploying of html templates based
> on timestamps, the required changes are localized in a single
> class: TemplateSourceImpl. Instead of returning a ComponentTemplate
> from various template locating methods, they may return a Resource
> instead. Then one can get an URL from the Resource, open a
> connection and get the last modified time.
> 
> Do you think this approach will work?
> 
> --
> Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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