Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
Thanks Martin, I did make that much progress yesterday after sending this, but I can't figure out how to get the Application inside the onBeginRequest method that I override. In the other examples they call getApplication() @Override protected void onBeginRequest() { if

Re: Reload html in Wicket + GAE

2012-02-07 Thread Martin Grigorov
On Tue, Feb 7, 2012 at 3:53 PM, Daniel Watrous daniel.watr...@gmail.com wrote: Thanks Martin, I did make that much progress yesterday after sending this, but I can't figure out how to get the Application inside the onBeginRequest method that I override. In the other examples they call

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
I've now created a class MyRequestCycleListener extends AbstractRequestCycleListener. I'm having a little trouble building class GaeModificationWatcher implements IModificationWatcher. I've tried following this example: http://agilewombat.blogspot.com/2010/01/wicket-on-google-app-engine.html to

Re: Reload html in Wicket + GAE

2012-02-07 Thread Martin Grigorov
Try with java.util.Map.Entry On Tue, Feb 7, 2012 at 5:39 PM, Daniel Watrous daniel.watr...@gmail.com wrote: I've now created a class MyRequestCycleListener extends AbstractRequestCycleListener. I'm having a little trouble building  class GaeModificationWatcher implements

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
That helped. I'm getting really close. I'm now getting a null pointer exception in this function public boolean add(IModifiable modifiable, IChangeListener listener) { // TODO Auto-generated method stub checkResources(); SetIChangeListener

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
So I was just looking at what I sent along and it seems that putIfAbsent(modifiable, new HashSetIChangeListener()) should return the value component, which should be the new HashSetIChangeListener. Even if the key modifiable already exists, it should return the previously created

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
I finally got it working. Here's the modified function: public boolean add(IModifiable modifiable, IChangeListener listener) { // TODO Auto-generated method stub checkResources(); HashSetIChangeListener listenerSet = new

Re: Reload html in Wicket + GAE

2012-02-07 Thread Kayode Odeyemi
Glad you got it working Daniel, as Martin mentioned earlier, I'll appreciate if you can contribute this to existing GaeInitializer or somewhere comfortable with the full code so it can be valuable to us all. Thanks On Tue, Feb 7, 2012 at 5:31 PM, Daniel Watrous daniel.watr...@gmail.comwrote: I

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
Here's my write up: http://software.danielwatrous.com/software-engineering/wicket-gae-automatic-reload I'm not sure if I can push directly into wicketstuff, but I'm happy to try. You can grab the source from my site and put it in there. You may even have a more clever way to composing things.

Reload html in Wicket + GAE

2012-02-06 Thread Daniel Watrous
Hi, I'm following up on a previous thread that's still unresolved. I would like GAE to automatically reload my HTML when I save changes. Classes are reloaded when I save (compile) them, but I have to restart each time for HTML changes. There are some old articles that show how to do this, but

Re: Reload html in Wicket + GAE

2012-02-06 Thread Martin Grigorov
Hi, On Tue, Feb 7, 2012 at 1:32 AM, Daniel Watrous daniel.watr...@gmail.com wrote: Hi, I'm following up on a previous thread that's still unresolved. I would like GAE to automatically reload my HTML when I save changes. Classes are reloaded when I save (compile) them, but I have to restart