On Wed, Jul 13, 2011 at 1:04 PM, Matt Brictson <[email protected]> wrote: > The way I've always done it (and this works just fine outside of Eclipse as > well), is to enable resource polling in Wicket for the directory that > contains the HTML files. > > In the init() method of your WebApplication subclass (in the quickstart this > is called WicketApplication.java) do something like this: > > getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); > String htmlDir = getServletContext().getRealPath("/"); > if(htmlDir != null && !htmlDir.endsWith("/")) > { > htmlDir += "/"; > } > getResourceSettings().addResourceFolder(htmlDir + "../java"); > getResourceSettings().addResourceFolder(htmlDir + "../resources");
Thanks for the link. I added this code to init() and confirmed that the paths being added are the correct ones for my Maven project. However, I'm still not seeing HTML changes being updated when I do a 'mvn jetty:run.' (Or Java changes, for that matter). Resources in the htmlDir that was already set, like CSS, are also not updating. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
