I believe that it's something like this (we're still on 1.2.6 here at work).

getResourceSettings().addResourceFolder("/WEB-INF/html");



On 7/12/07, David Rosenstrauch <[EMAIL PROTECTED]> wrote:
> Hi.  Wicket newbie here - and loving the framework.  Great work!
>
> I started tinkering with it a few weeks ago, and wrote some code, but
> then realized that I probably ought to switch to use v1.3.  Running into
> some conversion problems, though.  Specifically, I used the approach
> described here:
>
> http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
>
> "I needed a way to load up HTML files that are all inside the same
> directory. That directory happened to be /WEB-INF/html. Essentially, I
> needed to chop off the fully qualified class name and turn
> com/example/wicket/app/HomePage.html into simply
> /WEB-INF/html/HomePage.html"
>
> There's perfect instructions on how to do this in 1.2 (see the bottom of
> that page).  But that code broker upon upgrading to 1.3.  Specifically,
> the CompoundResourceStreamLocator class appears to no longer exist.  In
> addition, the IResourceFinder.find method now appears to take 2 parms
> (Class and String) whereas it previously only took a String.
>
> Anyone have any idea how this code should be updated for 1.3?
>
> TIA,
>
> DR
>
> -------------------------------------------------------------------------
> 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
>


-- 
Scott Swank
reformed mathematician

-------------------------------------------------------------------------
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