Hi all,

I just pushed a new branch sandbox/atmosphere, which provides integration of 
the Atmosphere Framework (push/cometd) in Wicket. It works as follows: create 
a component with a public method that takes an AjaxRequestTarget and an event 
object (can be any type) and annotate it with @Subscribe. You can now post 
events via EventBus.get().post(event) from anywhere in your application, and 
these will trigger ajax updates via the event methods. The code is still a 
working draft, but it works on Jetty 8 with Firefox and Chrome. It should also 
work on Tomcat and older versions of Jetty. For some reason, it does not work 
on IE (help is welcome).

To get all this working, I also had to upgrade the servlet API from 2.5 to 
3.0.1. AFAIK this was on the roadmap for Wicket 6.0. The examples now run on 
Jetty 8.1 and use SelectChannelConnector (NIO) to support non-blocking IO.

My intentions are to get this into Wicket 6.0, but not under a 6.0 version, as 
Martijn suggested yesterday, if others agree.

Best regards
Emond

Reply via email to