On 1/2/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to cache dynamically generated content with Wicket?
> When using JSP I may use OSCache tags (specify conditions, timeout,
> etc) or create a custom tag that uses any cache implementation inside.
> Can this be done with Wicket?
>
> Can panel contents be cached? Other elements? How?
> For example I generate table where each row contains quite complex data.
> I'd like to be able to cache each row if needed. Every row might
> contain a unique ID to make caching possible.
>

Not out of box yet, but I don't think it is difficult to implement
based on the recently committed "transformers". Currently only a XSLT
and a noop transformer is available but the idea would be the same.
You just wouldn't transform the output generated by the component but
store them in a cache and restore it when needed. The cache key could
be anything from the component object, its id or path. All children
would have to me marked rendered though in order to avoid an
exception.
Tranformers are available as Container and Behaviours.
Q. Should the cache span the whole application because the panel you
want to cache is used on multiple pages? Will the panel/list be the
same for all users?
Q: what would be the best cache key?

Juergen

> Darek
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to