You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jason Rosenberg <jb...@gmail.com> on 2009/03/09 06:45:08 UTC

How to configure development mode so can see changes on-the-fly without restart

Hello,

I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
jetty:run plugin)....

In development mode, I expected to be able to edit html pages in the IDE,
and see changes reflected immediately in the browser upon browser refresh,
without having to restart wicket.  Also, not sure if it should be possible
to recompile java classes and see the changes from those reflected as well,
on the fly....

Anyway, so far I've been unable to get things working that way (I have to
stop wicket and restart it, after updating)....

I generated my project initially using the quickstart maven archetype....

Essentially, I'm wanting to replicate the JSP model where you edit jsp files
and then the server recompiles changes and presents them without a
restart...

Thanks for any advice...

Jason
-- 
View this message in context: http://www.nabble.com/How-to-configure-development-mode-so-can-see-changes-on-the-fly-without-restart-tp22407484p22407484.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: How to configure development mode so can see changes on-the-fly without restart

Posted by Jason Rosenberg <jb...@gmail.com>.
Yeah,

Unfortunately, I tried using the jetty scanInterval setting, but this caused
Jetty to reload the wicket app, and since I'm using Guice to inject
configuration params, it doesn't like to re-inject params multiple times....

Jason



Stefan Malmesjö wrote:
> 
> You can read up here 
> http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin on 
> scanIntervalSeconds and reload=automatic. It works for me, but I usually 
> get an exception after 30 or so reloads. But I figure it's better than 
> nothing :)
> 
> /Stefan
> 
> Jason Rosenberg wrote:
>> Hello,
>>
>> I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
>> jetty:run plugin)....
>>
>> In development mode, I expected to be able to edit html pages in the IDE,
>> and see changes reflected immediately in the browser upon browser
>> refresh,
>> without having to restart wicket.  Also, not sure if it should be
>> possible
>> to recompile java classes and see the changes from those reflected as
>> well,
>> on the fly....
>>
>> Anyway, so far I've been unable to get things working that way (I have to
>> stop wicket and restart it, after updating)....
>>
>> I generated my project initially using the quickstart maven archetype....
>>
>> Essentially, I'm wanting to replicate the JSP model where you edit jsp
>> files
>> and then the server recompiles changes and presents them without a
>> restart...
>>
>> Thanks for any advice...
>>
>> Jason
>>   
> 
> 
> -- 
> Stefan Malmesjö  |  Applications Developer
> Phone +46 (0)8-410 064 49
> -- 
> Curalia AB  |  www.curalia.se
> Hudiksvallsgatan 4, 113 30 Stockholm, Sweden
> -- 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-configure-development-mode-so-can-see-changes-on-the-fly-without-restart-tp22407484p22413712.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: How to configure development mode so can see changes on-the-fly without restart

Posted by uwe janner <uj...@googlemail.com>.
for class reloading you can either use wicket with seam (of course activate
debug/development mode in both seam and wicket) or javarebel (which now has
a wicket plugin).

as we migrated from seam with jsf to seam with wicket we are very happy to
have this "instant change" feature for free.

cheers, uwe.

On Mon, Mar 9, 2009 at 10:26 AM, Stefan Malmesjö <stefan.malmesjo@curalia.se
> wrote:

> You can read up here
> http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin on
> scanIntervalSeconds and reload=automatic. It works for me, but I usually get
> an exception after 30 or so reloads. But I figure it's better than nothing
> :)
>
> /Stefan
>
> Jason Rosenberg wrote:
>
>> Hello,
>>
>> I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
>> jetty:run plugin)....
>>
>> In development mode, I expected to be able to edit html pages in the IDE,
>> and see changes reflected immediately in the browser upon browser refresh,
>> without having to restart wicket.  Also, not sure if it should be possible
>> to recompile java classes and see the changes from those reflected as
>> well,
>> on the fly....
>>
>> Anyway, so far I've been unable to get things working that way (I have to
>> stop wicket and restart it, after updating)....
>>
>> I generated my project initially using the quickstart maven archetype....
>>
>> Essentially, I'm wanting to replicate the JSP model where you edit jsp
>> files
>> and then the server recompiles changes and presents them without a
>> restart...
>>
>> Thanks for any advice...
>>
>> Jason
>>
>>
>
>
> --
> Stefan Malmesjö  |  Applications Developer
> Phone +46 (0)8-410 064 49
> --
> Curalia AB  |  www.curalia.se
> Hudiksvallsgatan 4, 113 30 Stockholm, Sweden
> --
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: How to configure development mode so can see changes on-the-fly without restart

Posted by Stefan Malmesjö <st...@curalia.se>.
You can read up here 
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin on 
scanIntervalSeconds and reload=automatic. It works for me, but I usually 
get an exception after 30 or so reloads. But I figure it's better than 
nothing :)

/Stefan

Jason Rosenberg wrote:
> Hello,
>
> I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
> jetty:run plugin)....
>
> In development mode, I expected to be able to edit html pages in the IDE,
> and see changes reflected immediately in the browser upon browser refresh,
> without having to restart wicket.  Also, not sure if it should be possible
> to recompile java classes and see the changes from those reflected as well,
> on the fly....
>
> Anyway, so far I've been unable to get things working that way (I have to
> stop wicket and restart it, after updating)....
>
> I generated my project initially using the quickstart maven archetype....
>
> Essentially, I'm wanting to replicate the JSP model where you edit jsp files
> and then the server recompiles changes and presents them without a
> restart...
>
> Thanks for any advice...
>
> Jason
>   


-- 
Stefan Malmesjö  |  Applications Developer
Phone +46 (0)8-410 064 49
-- 
Curalia AB  |  www.curalia.se
Hudiksvallsgatan 4, 113 30 Stockholm, Sweden
-- 


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


Re: How to configure development mode so can see changes on-the-fly without restart

Posted by Jason Rosenberg <jb...@gmail.com>.
Thanks Maarten,

This worked for me (and I'm still using jetty:run)....

I'll look into JavaRebel for the class reloading bit....

Jason



Maarten Bosteels wrote:
> 
> Hello,
> 
> I am also using IDEA 8.1 but instead of the jetty:run I start the wicket
> app
> with the Start [1] class that is part of the quickstart archetype.
> 
> Not sure it's necessary but in my Application class, I added these lines
> for
> automatic picking up changes to the html:
> 
> getResourceSettings().setResourcePollFrequency(Duration.milliseconds(500));
> getResourceSettings().addResourceFolder("src/main/java");
> 
> And for automatically picking up compiled classes, I am using JavaRebel,
> haven't tried their latest version though.
> 
> [1]
> http://svn.apache.org/repos/asf/wicket/trunk/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Start.java
> [2] http://www.zeroturnaround.com/javarebel/
> 
> Maarten
> 
> On Mon, Mar 9, 2009 at 6:45 AM, Jason Rosenberg
> <jb...@gmail.com>wrote:
> 
>>
>> Hello,
>>
>> I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
>> jetty:run plugin)....
>>
>> In development mode, I expected to be able to edit html pages in the IDE,
>> and see changes reflected immediately in the browser upon browser
>> refresh,
>> without having to restart wicket.  Also, not sure if it should be
>> possible
>> to recompile java classes and see the changes from those reflected as
>> well,
>> on the fly....
>>
>> Anyway, so far I've been unable to get things working that way (I have to
>> stop wicket and restart it, after updating)....
>>
>> I generated my project initially using the quickstart maven archetype....
>>
>> Essentially, I'm wanting to replicate the JSP model where you edit jsp
>> files
>> and then the server recompiles changes and presents them without a
>> restart...
>>
>> Thanks for any advice...
>>
>> Jason
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-configure-development-mode-so-can-see-changes-on-the-fly-without-restart-tp22407484p22407484.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-configure-development-mode-so-can-see-changes-on-the-fly-without-restart-tp22407484p22413711.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: How to configure development mode so can see changes on-the-fly without restart

Posted by Maarten Bosteels <mb...@gmail.com>.
Hello,

I am also using IDEA 8.1 but instead of the jetty:run I start the wicket app
with the Start [1] class that is part of the quickstart archetype.

Not sure it's necessary but in my Application class, I added these lines for
automatic picking up changes to the html:

getResourceSettings().setResourcePollFrequency(Duration.milliseconds(500));
getResourceSettings().addResourceFolder("src/main/java");

And for automatically picking up compiled classes, I am using JavaRebel,
haven't tried their latest version though.

[1]
http://svn.apache.org/repos/asf/wicket/trunk/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Start.java
[2] http://www.zeroturnaround.com/javarebel/

Maarten

On Mon, Mar 9, 2009 at 6:45 AM, Jason Rosenberg <jb...@gmail.com>wrote:

>
> Hello,
>
> I'm new to Wicket (using 1.4-rc2, using IDEA IntelliJ 8.1 and maven2 with
> jetty:run plugin)....
>
> In development mode, I expected to be able to edit html pages in the IDE,
> and see changes reflected immediately in the browser upon browser refresh,
> without having to restart wicket.  Also, not sure if it should be possible
> to recompile java classes and see the changes from those reflected as well,
> on the fly....
>
> Anyway, so far I've been unable to get things working that way (I have to
> stop wicket and restart it, after updating)....
>
> I generated my project initially using the quickstart maven archetype....
>
> Essentially, I'm wanting to replicate the JSP model where you edit jsp
> files
> and then the server recompiles changes and presents them without a
> restart...
>
> Thanks for any advice...
>
> Jason
> --
> View this message in context:
> http://www.nabble.com/How-to-configure-development-mode-so-can-see-changes-on-the-fly-without-restart-tp22407484p22407484.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>