With this configuration, this seems to work as I expected :

        resourceSettings.addResourceFolder( "src/main/webapp" );
        resourceSettings.addResourceFolder( "" ); // Web Application context
root

src/main/webapp is used during devs to get page refresh wen HTML template is
edited, "" is used to point to webapp context root.

Nico.


2008/3/3, Igor Vaynberg <[EMAIL PROTECTED]>:
>
> so write a locator that does that?
>
> -igor
>
>
>
> On Mon, Mar 3, 2008 at 3:41 AM, nicolas de loof <[EMAIL PROTECTED]>
> wrote:
> > Found myself a partial response at
> >
> >
> http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3
> >
> >  But this only work on my deve environment. When packaged as a war, I'd
> like
> >  the ResourceStreamLocator to lookup the HTML templates in web
> application
> >  context root.
> >
> >  Nico.
> >
> >  2008/3/3, nicolas de loof <[EMAIL PROTECTED]>:
> >
> >
> > >
> >  > Hello,
> >  >
> >  > I'm just evaluating wicket and am very impressed by clean design.
> >  >
> >  > One killer benefict of separation of concerns is the pure HTML files
> that
> >  > designer can edit without any knowledge of the underlying java code.
> >  > I only have an issue as my static content (css, images) is in
> >  > src/main/webapp and html templates in src/main/java. When launching a
> >  > browser to look at the template, I get no css/imgage decorations.
> >  >
> >  > How can I setup wicket to get html templates from servlet context
> root and
> >  > not from classpath ?
> >  >
> >  > or
> >  >
> >  > What are the best-practices to allow HTML display / design without
> any
> >  > server running ?
> >  >
> >  > Nico.
> >  >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to