in 1.3 you can override some methods of your page that shouldn't me cached.
don't know from top of my head what the 1.2 methods are but in 1.3:
*

public* MarkupStream getAssociatedMarkupStream(*final* *boolean*throwException)
(of the MarkupContainer)
and then make the call:

*

return*getApplication().getMarkupSettings().getMarkupCache().getMarkupStream(
*this*,*true*, throwException);
that true should take care that it always is reloaded.

On Nov 13, 2007 11:55 PM, Andrew MacKenzie <[EMAIL PROTECTED]> wrote:

> +++ Johan Compagner [wicket-users] [Tue, Nov 13, 2007 at 11:40:07PM
> +0100]:
> > ahh wait your are not talking about Resource (the class and then the
> > SharedResources) But you are talking about what the
> IResourceSteamLocator
> > does return for Markup and other kind of (classpath) Resources?
> Yes, sorry for the confusion - I didn't realize there were so many things
> called "Resource."
>
> > Yes those are cached in 1.2 we didn't cache properties files yet, But
> the
> > Localizer does now.
> > but in 1.2 we already did have the MarkupCache. And that one polls your
> > streams for the last modified time
> > and if that is different it will clear the cache.
> >
> > but what do you cache (or don't you want to cache)? is it markup?
> Yes - I don't want the markup cached.  I'd like for Wicket to always try
> to
> fetch it new on every new request.
>
> I've found that I can tell wicket to poll very frequently via
> ".setResourcePollFrequency", but this will only 'mitigate' my issue, not
> solve it.
>
>
> --
> // Andrew MacKenzie  |  http://www.edespot.com
> // GPG public key: http://www.edespot.com/~amackenz/public.key
>  // "If my theory of relativity is proven successful, Germany will claim
> //  me as a German and France will declare that I am a citizen of the
> //  world. Should my theory prove untrue, France will say that I am a
> //  German and Germany will declare that I am a Jew."
> //     -- Albert Einstein
>

Reply via email to