I never tried the first option myself, but something like that should work. You should be able to plug in your custom loader.
The second option should work too. You have to mimic the whole package structure though. So if you have yourpackage.doodaa.YourPage.java, you also have to have WEB-INF/html/yourpackage/doodaa/YourPage.html. Same goes for your properties. Wicket allready uses chaining, so you can configure both the /html and /properties paths. Eelco On 10/3/05, David Pereira <[EMAIL PROTECTED]> wrote: > > Sorry to bother again. I want to change my resource > folder and I already tried all the solutions that are > present at the WicketWiki: > > This: > http://www.wicket-wiki.org.uk/wiki/index.php/Control_where_HTML_files_are_loaded_from > > And this: > http://www.wicket-wiki.org.uk/wiki/index.php/Custom_resource_paths > > I'm using version 1.1 rc1. The first option apparently > is not available in this version and the second one: > > String root = getWicketServlet().getServletContext() > ... > getSettings().addResourceFolder(root); > > is causing this Exception: > > wicket.WicketRuntimeException: Markup of type 'html' > for component 'br.com.adv...' not found or invalid. > > Which obviously means that the files couldn't be > found. Can you please help me? I want the htmls in > WEB-INF/html and the properties in WEB-INF/properties. > > Thanks. > David > > > > > > > > > _______________________________________________________ > Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e > muito mais. Instale agora! > www.yahoo.com.br/messenger/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Wicket-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-develop > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
