The key word is "add" correct? Assume at time X the markup doesn't
exist and at X+1 it does.

The options depend a little bit on which version you are using. In
general what Wicket does is to cache the markup for performance
reason. And it will also cache a null result for resources not found
to avoid complex search which than again ends in "not found".

You can disable the whole cache via a "global" IMarkupCacheKeyProvider
which always return null, which means the markup stream (or null if
not found) doesn't get cached. But that might slow down your
application too much.

Hmm ... Same as MarkupCache reloads markup that has changed it
currently does not reload it if the markup file didn't exist before..
Please open a JIRA entry, I need to think about it a little bit more.

Juergen

On 5/15/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> Hi, I'm still in love with Wicket but have one question:
>
> I've got lots of different variant markups and I wish to create new ones
> at various times. Wicket determines which one to use via the overridden
> getVariation() method that I provide in my page class.
>
> I'd like to be able to add new variant markups on the fly at run time
> but I currently have a problem: any new markups that I add are ignored
> until I reload/restart the web application. Is there anyway to get
> wicket to pick up new markup variants without restarting the web
> application?
>
> [I'm guessing it's a class loader issue that's causing the problem]
>
> I load the markups from a directory that I specify in the init of Wicket
> application object (if that's relevant):
>
> CompoundResourceStreamLocator locator =
>         (CompoundResourceStreamLocator)getResourceSettings().
>                 getResourceStreamLocator();
>
> WebApplicationPath resourceFinder =
>         (WebApplicationPath)getResourceSettings().getResourceFinder();
>
> resourceFinder.add("c:/webserver/tomcat/wicket/markupfiles");
>
> locator.add(0, new WebPageResourceStreamLocator(resourceFinder));
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to