Hi,

sorry if this mail arrives twice, but the mailing list seems to have dropped 
the first one.

I'm having problems with wicket-atmosphere. It seems like the various urlFor() 
methods return null when called from the "artificial" request cycle that gets 
triggered by EventBus.post(Object). Specifically, I have traced down the 
problem to be encodeUrl() returning null in such a case, which I *think* comes 
from the fake HttpServletResponse defined at the top of AtmosphereResponse. 
That class seems to be lacking other important methods as well.

I was able to reproduce the problem in the example from 
https://github.com/papegaaij/wicket-atmosphere-quickstart -- just add a 
Link<Void> with an empty onClick() handler to the page, setOutputMarkupId(true) 
and re-render the link in the subscribed methods. The link will appear 
correctly on the page when it is first requested, but the href attribute turns 
to nothing (null) when the link gets re-rendered.

As far as I can tell, Atmosphere uses WebSockets in my experiment.

So far I have been unsuccessful in building a workaround. Atmosphere seems to 
be especially stubborn about using that fake HttpServletResponse 
implementation, even though it is missing all important features. The 
wicket-atmosphere module isn't easily modified either -- both 
AtmosphereWebResponse and the relevant methods in EventBus are private. Short 
of actually building my own modified version of it, I can't seem to make it 
work.

Any ideas?

Greetings,
Martin Geisse

Reply via email to