i just added this all to the FAQ in xdocs, btw.
let's try to start building the FAQ up for basic questions like this...
Jonathan Locke wrote:
yes. but this will cause the markup resource to be reloaded from wherever wicket found it
if you want wicket to find and load markup from your source tree (which is a highly efficient way to develop since you don't even need to redeploy to see a change... just hit refresh), you need to specify a source path with settings.setSourcePath(Path)
in fact, you can chain this all together like this:
settings.setResourcePollFrequency(Duration.ONE_SECOND)
.setSourcePath(new Path(new Folder("c:\\Projects\\MyWicketProject\\src\\java")));
Eelco Hillenius wrote:
If you want your HTML pages to be reloaded when they change, you should put this (or similar) in your WebApplication class:
Duration pollFreq = Duration.ONE_SECOND; settings.setResourcePollFrequency(pollFreq);
Eelco
Jonathan Carlson wrote:
I was just looking at the Groovy support in the wicket-contrib module. The automatic recompiling of changed Groovy files will be great for productivity. But I'm curious about the HTML, though. Does it reload the related HTML if it changes too? That would greatly reduce people's need to constantly reload their web app as they work on it.
(Maybe I missed something and *.html files in the classes directory are automatically reloaded anyways. My "reload" ant target copies my HTML from the src directory to the WEB-INF/classes directory so I wouldn't know about that yet)
Thanks in advance for the info
Jonathan
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
www.katun.com **********************************************************************
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
