Changing markup location in 6.0

2012-08-26 Thread Phill
I've got a 1.5.x app which I'm converting to 6.0-beta3 and I keep my markup 
separate and under WEB-INF/html.
With 1.5.x I use the following in my Application class:

IResourceSettings resourceSettings = getResourceSettings();
resourceSettings.addResourceFolder(WEB-INF/html/);

I can't seem to find an equivalent in 6.0 that allows me to load from this 
location, I've tried the 3 IResourceFinders - ClassPathResourceFinder, Path, 
WebApplicationPath as follows but I can't get any of them to work.

IResourceSettings resourceSettings = getResourceSettings();
resourceSettings.getResourceFinders().add(IResourceFinder here);

Is there any way to do this in 6.0?
-Phill
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Changing markup location in 6.0

2012-08-26 Thread Martin Grigorov
Hi,

WebApplicationPath doesn't look in WEB-INF anymore because this may
lead to a security hole.
If you still want to load resources from there it is quite easy to
create your own version of WebApplicationPath that doesn't have this
restriction.

On Sun, Aug 26, 2012 at 10:19 PM, Phill ph...@inversebit.com wrote:
 I've got a 1.5.x app which I'm converting to 6.0-beta3 and I keep my markup 
 separate and under WEB-INF/html.
 With 1.5.x I use the following in my Application class:

 IResourceSettings resourceSettings = getResourceSettings();
 resourceSettings.addResourceFolder(WEB-INF/html/);

 I can't seem to find an equivalent in 6.0 that allows me to load from this 
 location, I've tried the 3 IResourceFinders - ClassPathResourceFinder, Path, 
 WebApplicationPath as follows but I can't get any of them to work.

 IResourceSettings resourceSettings = getResourceSettings();
 resourceSettings.getResourceFinders().add(IResourceFinder here);

 Is there any way to do this in 6.0?
 -Phill
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org