Hi,

For best performance of redeploys in Wicket, consider storing HTML not
in the Java package structure but in the web directory. So if your IDE
and app server allow for hot deployment, then HTML changes deploy much
faster, ie instantly. In your application init(), you add one
statement 

getResourceSettings().addResourceFolder("wicket");

where "wicket" matches the url-pattern in your filter-mapping in
web.xml.

PLease see https://issues.apache.org/jira/browse/WICKET-2881 for some
background on how to take this one step further.

Additionally, with GlassFish V3, you get session preservation on hot
deployment of Java classes.

You can enable "deploy on save" for convenience.

If that is not fast enough, you can run your app in debug mode and hot
swap classes after save while you are debugging it.

All this comes with the NetBeans IDE. You really don't have to worry
about this stuff anymore.

Regards

Bernard



On Sat, 29 May 2010 16:12:46 +0100, you wrote:

>have you tried JRebel?  I've not used it myself, but there was an 
>interview on JavaPosse recently, sounds like it'd be an ideal fit for 
>any Wicket developer.
>
>Dan
>
>On 22/07/28164 20:59, David Chang wrote:
>> I am using Tomcat, any tips about how to develop out recompiling/restarting 
>> after every change?
>>
>> Best.
>>
>> --- On Fri, 5/21/10, Jeremy Thomerson<[email protected]>  wrote:
>>
>>    
>>> From: Jeremy Thomerson<[email protected]>
>>> Subject: Re: Can I develop without recompiling/restarting after every 
>>> change?
>>> To: [email protected]
>>> Date: Friday, May 21, 2010, 12:17 PM
>>> the easiest way to do this is to use
>>> the Start class (Start.java) from the
>>> quickstart to run an embedded jetty instance in your
>>> IDE.  then, if you run
>>> it in debug mode, it will hotswap any possible changes (and
>>> tell you if you
>>> must restart if it's an incompatible change)
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>> On Fri, May 21, 2010 at 10:53 AM, ekallevig<[email protected]>
>>> wrote:
>>>
>>>      
>>>> I'm a front-end developer trying to learn Java (total
>>>>        
>>> n00b) and working on
>>>      
>>>> a
>>>> wicket application at work.  The whole process
>>>>        
>>> feels very slow primarily
>>>      
>>>> because I have to recompile and restart JBoss every
>>>>        
>>> time I make a change.
>>>      
>>>> So I'm wondering what the best way is to avoid having
>>>>        
>>> to do this when
>>>      
>>>> editing .java/.js/.css/.html files during development?
>>>>        
>>> I'd like to just
>>>      
>>>> make
>>>> changes and then refresh the browser to test -- is
>>>>        
>>> this possible?
>>>      
>>>> I've seen in the FAQ that you can change the
>>>>        
>>> application settings to
>>>      
>>>> auto-reload markup .html files -- where would I insert
>>>>        
>>> this setting
>>>      
>>>> (remember I'm a total n00b).
>>>>
>>>> As to .css/.js/.java files -- do I need jRebel or
>>>>        
>>> something like that to
>>>      
>>>> get
>>>> these files to reload automatically?
>>>>
>>>> Thanks for helping out a super-beginner :)
>>>> --
>>>> View this message in context:
>>>> http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2226360.html
>>>> Sent from the Wicket - User mailing list archive at
>>>>        
>>> Nabble.com.
>>>      
>>>>
>>>>        
>>> ---------------------------------------------------------------------
>>>      
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>>        
>>>      
>>
>>
>>
>>    


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to