Hi everybody,
In the FAQ
(http://wicket.sourceforge.net/faqs.html#how-reload-changed-markup-files),
it is said to call the setSourcePath() method on the
ApplicationSettings so that Wicket reloads on the fly modified HTML
files. However, there is no such method in the API!
I set the resource poll frequency to one second in the init method of
my WebApplication subclass. I also tried to call the configure()
and setResourceFinder() methods of the ApplicationSettings object, but
nothing works.
Here is my code :
ServletContext servletContext = getWicketServlet().getServletContext();
ApplicationSettings settings = createApplicationSettings();
IResourceFinder resourceFinder = new WebApplicationPath(servletContext);
settings.configure("development", resourceFinder);
settings.setResourceFinder(resourceFinder);
settings.setResourcePollFrequency(Duration.ONE_SECOND);
>From what I understand of the FAQ, I should not have to specify a
source folder because I use Eclipse to edit my HTML files.
Whenever I save a file, it is automatically copied under the classes
directory, which is where Wicket looks for the HTML files.
Where am I wrong?
Thank you,
Vincent Dussault
- [Wicket-user] Reload of modified HTML files Vincent Dussault
- Re: [Wicket-user] Reload of modified HTML files Eelco Hillenius
- Re: [Wicket-user] Reload of modified HTML files Vincent Dussault
- Re: [Wicket-user] Reload of modified HTML fi... Johan Compagner
