You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tobias Marx <tm...@gmx.de> on 2010/10/04 19:18:19 UTC

@Cached method called multiple times

Hello everyone!

I am using Tapestry 5.1.5 and I noticed that a method annotated as @Cached is executed several times for a single pageview.

I am using a "BaseComponent" class that contains this method. It is called from component that extends this.

Or is it possible @Cached is not working when debugging with Jetty?

Thanks!

Tobias


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


Re: @Cached method called multiple times

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 04 Oct 2010 14:18:19 -0300, Tobias Marx <tm...@gmx.de> wrote:

> Hello everyone!

Hi!

> I am using Tapestry 5.1.5 and I noticed that a method annotated as  
> @Cached is executed several times for a single pageview.
> I am using a "BaseComponent" class that contains this method. It is  
> called from component that extends this.

I guess you have more than one BaseComponent subclass instance in your  
page. If so, you're seeing the expected behavior.

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