You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by matt2 <s1...@zoznam.sk> on 2010/09/14 08:52:05 UTC

Component/Page Caching...

Hello,
I have a problem with component caching.
In tapestry Pages and Component are cached with Key contains: className and
locale,
but i need to cache it with className, locale, another
parameter(template_directory),

I have tried decorate internal service ComponentTemplateSource(it is
possible), 
but I can not decorate PageLoader(ComponentAssembler, and so on... are not
public)...

Is there any way how to decorate PageLoader, 
or how to cache pages and component with key contains 3 parameters?

Big Thanks to all for any suggestion,


and sorry for my horrible english :)
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/Component-Page-Caching-tp2838685p2838685.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Component/Page Caching...

Posted by matt2 <s1...@zoznam.sk>.
problem resolved,
I decorated PageSource and PageLoader.
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/Component-Page-Caching-tp2838685p2839382.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Component/Page Caching...

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 14 Sep 2010 06:46:33 -0300, matt2 <s1...@zoznam.sk> wrote:

> I have tried to implement this:
> http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/
> but will it work with page/component caching?

Tapestry already caches page instances (and the components inside them),  
so I don't know what you're trying to accomplish here. Tapestry 5.2  
doesn't even have a page pool anymore. What do you mean by caching?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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


Re: Component/Page Caching...

Posted by matt2 <s1...@zoznam.sk>.
I have tried to implement this:
http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/

but will it work with page/component caching?
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/Component-Page-Caching-tp2838685p2838902.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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