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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user