The "watch" parameter will reset the cache if another property changes. Consider a loop:
<t:loop source="items" value="item"> <if:test="transformedItem.valid"> ${transformedItem.someProperty} </t:if> </t:loop> public class MyPage @Property private Item item; public List<Item> getItems() { ... } @Cached(watch="item") public TransformedItem getTransformedItem() { return doSomeTransformation(item); } } In this example, "transformedItem" can be cached until "item" changes. -- View this message in context: http://tapestry.1045711.n5.nabble.com/implementing-a-Tapestry-IoC-annotation-to-cache-method-results-tp5719068p5719072.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org