So by the look of the code you show here it is a filter init param, I don't remember seeing anything about configuring a filter.
Anyway, I looked at the internalinit() method in WebApplication and found where it is pulling the sourceFolder init param from the servlet. I added that init param and it still doesn't work, here is my servlet config; <servlet> <servlet-name>wicket</servlet-name> <servlet-class>wicket.protocol.http.WicketServlet</servlet-class> <init-param> <param-name>applicationClassName</param-name> <param-value>com.lenzen.web.WicketApplication</param-value> </init-param> <init-param> <param-name>sourceFolder</param-name> <param-value>/WEB-INF/view</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> Here is the debug statements when turning on debug for wicket.util.resource. 08:58:40,046 DEBUG [UrlResourceStream] cannot convert url: jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib /wicket-1.2.2.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to file (URI is not hierarchical), falling back to the in putstream for polling 08:58:40,187 DEBUG [ResourceFinderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en_ US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]] 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en_ US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]] 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en. html' on path [folders = [], webapppaths: [/WEB-INF/view/]] 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView.htm l' on path [folders = [], webapppaths: [/WEB-INF/view/]] 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en_US. html' using classloader WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: [EMAIL PROTECTED] 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en_US. html' using classloader WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: [EMAIL PROTECTED] 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView_en.htm l' using classloader WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: [EMAIL PROTECTED] 08:58:40,218 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate resource 'wicket/markup/html/debug/PageView.html' using classloader WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: [EMAIL PROTECTED] 08:58:40,218 DEBUG [UrlResourceStream] cannot convert url: jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib /wicket-1.2.2.jar!/wicket/markup/html/debug/PageView.html to file (URI is not hierarchical), falling back to the inputstream for polling Juergen Donnerstag wrote: > > Just follow back where addResourceFolder() is already used. It is > currently used in WebApplication.internalInit() and > PortletApplication.internalInit() and the code looks like > ... > configure(configuration, wicketFilter.getFilterConfig() > .getInitParameter("sourceFolder")); > ... > > So the init param is "sourceFolder" > > Juergen > > > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote: >> >> I've beed trying to get this to work for a while now, basically what I >> want, >> is to have Wicket load my html files from /WEB-INF/view directory instead >> of >> the classes directory. >> >> I've been reading a post about seperating your html and it was suggested >> to >> use the method addResourceFolder("path"); So in my init method of my >> WebApplication subclass I have the following init method; >> >> protected void init() { >> >> >> this.getResourceSettings().addResourceFolder("/WEB-INF/view/"); >> >> } // init >> >> Thist doesn't seem to work, what am I missing or is this really possible. >> I >> also tried turing debug on for the path "wicket.util.resource" and the >> only >> resource path that is logged in WEB-INF/classes. >> >> Also, the other post mentioned adding this as an init parameter to the >> servlet, looking at the source code of the servlet I don't see anything >> that >> allows for adding additional resource folder paths. >> >> I'm new to Wicket and currently evaluating it against JSF and would >> appriecate any help. >> -- >> View this message in context: >> http://www.nabble.com/Add-addictional-resource-folder-tf2392764.html#a6671548 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> 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 >> Wicket-user@lists.sourceforge.net >> 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 > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Add-addictional-resource-folder-tf2392764.html#a6679993 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user