How to edit Wicket's templates on fly

It's rather not a great discovery, but something I have missed when I start learning Wicket, and a thing which make great trouble to the webmaster - how to run Wicket application, and edit html without restarts - most time I have used Maven Integration plugin in Eclipse, and this thing worked, but when I have switched to Idea, I have to find another solution. And I was quite surprised that Wicket already have a solution, these two lines in Wicket Application init method allows to update state of resources such as HTML templates:

getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
getResourceSettings().setResourceFinder(new Path(new Folder("src/main/java")));

It's such important work improvement, but could be missed at first steps.

Recent comments