This only works in 1.3/ 2.0, but let your component implement
IMarkupResourceStreamProvider and IMarkupCacheKeyProvider. Then, let's
getCacheKey return null and your markup will never be cached.
Eelco
On 3/8/07, Scott Lusebrink <[EMAIL PROTECTED]> wrote:
> is there a way to tell a markup to not go into the MarkupCache. I'm
> overloading newMarkupResourceStream which will change on every page but it
> is being put in the cache and never getting run again. There is
> MarkupCache.clear () but that seems to much just to remove one
> markupcontainer. can i use a ChangeListener or something.
> Basically I need to run newMarkupResourceStream for every page request.
>
> for reference this is for use with JDOM if anyone is framiliar:
> public IResourceStream newMarkupResourceStream(Class containerClass)
> {
> CustomXMLOutputter outputter = new CustomXMLOutputter();
> String markup = outputter.outputString(getElement());
> markup = "<html xmlns:wicket><wicket:panel>" + markup
> + "</wicket:panel></html>";
> StringResourceStream stream = new StringResourceStream(markup);
> return stream;
> }
>
> Scott
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user