FWIW I tried 1.5-SNAPSHOT and the HTML resource reloading seems to work fine. 
Here's what I did:

1. Generated a quickstart[1] using 1.5-SNAPSHOT using the "-U" maven option to 
ensure the very latest snapshot was downloaded.
2. Pasted in the resource polling code into WicketApplication#init[2].
3. Ran mvn jetty:run.
4. While jetty was running, I edited Home.html: I changed "Congratulations" to 
"Testing".
5. Hit refresh in my browser and the change showed up.

[1]: http://wicket.apache.org/start/quickstart.html
[2]: 
http://apache-wicket.1842946.n4.nabble.com/Resource-auto-reload-with-the-Quickstart-project-tp3665329p3665543.html

-- 
Matt

On Jul 13, 2011, at 11:27 AM, Andrew Todd wrote:

> With the latest snapshot, I still wasn't seeing changes propagate. Until --
> 
> On Wed, Jul 13, 2011 at 2:03 PM, Martin Grigorov <mgrigo...@apache.org> wrote:
>> It is possible but you have to extend maven-jetty-plugin's configuration.
>> There was something about Scanner. Ask Google for more info
> 
> Adding the scanIntervalSeconds configuration parameter to the Jetty
> plugin, as per
> 
> http://stackoverflow.com/questions/2369851/hot-deploy-in-embedded-jetty
> 
> suddenly changes in Java and HTML were picked up. Eclipse is set to
> auto-build, so I don't have to explicitly run 'mvn compile' for it to
> redeploy. However Matt's reply, which just came in, is correct that
> JRebel is doing something different.
> 
> The answer seems to be that
> 
> 1) HTML reload may still be broken in SNAPSHOT
> 2) For making changes to Java code, run in Debug mode and connect with
> an IDE, or use JRebel
> 
> 
> Thanks,
> Andrew
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to