The groovy example does automatically reload the *.groovy and *.html
files based on the settings as already pointed out. This is because
groovy files get compiled to byte code thus the classes are no
different than any other class. Because of that groovy components are
no different than any other wicket core components and will use
wicket's already exsting logic to reload markup file.
my experience: Though I agree with you that at first I liked it very
much because of the reasons already given like RAD, (almost) no server
restart etc. and I tried to use it for some time, I finally went back
to using Java. The reason: java offers me the same and even more.
incremental build and replace while debugging etc.. And because Jetty
is not a full blown J2EE server restarting, it is a matter of seconds
instead of minutes, if really required. I prefer to have my syntax
checking, hints and all the nice features provided by eclipse. This
way, I'm actually faster developing with Java.
Juergen
On Thu, 03 Feb 2005 16:02:42 -0800, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> 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
>
-------------------------------------------------------
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