Thank you, it works perfectly! 

A suggestion : why not automatically reload HTML files every second when ApplicationSettings' configure() method receives "development" as an argument?  And that value could be passed as a servlet parameter on startup (or is it already the case?).

Vincent Dussault

On 8/30/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Your problem probably is that you call createApplicationSettings,
which actually is a method for internal use (I'll update the javadocs
right away). You should use getSettings, so you'll get the settings
that are created for you, and that will actually be used by Wicket.

Furthermore, you don't need to specify a path, as the default path is
the classpath. Additional paths are for things like filesystem paths
or Osgi class paths.

Eelco


On 8/30/05, Vincent Dussault < [EMAIL PROTECTED]> wrote:
> 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
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to