Hi all,

QuickStart: https://github.com/bollinger/WicketWebsocketsTest



I have a page StartPage[1] which uses web sockets. On this page there is an
AjaxLink which redirects to a BackgroundPage[2].


The BackgroundPage also uses web sockets. It waits for a web socket
connection, then kicks off some background work. When the work completes it
tries to display the results.



When navigating directly to the Background page or via a bookmarkable link,
all works as expected.


When arriving at Background page via the AjaxLink funky stuff happens. The
background work completes but it cannot send a message to the page to
refresh because the stored connectedMessage is null.

Looking at the serialization it seems like there are 2 background pages.



I’m probably doing something incorrectly, but what?


Many thanks.

Peter.



[1]

https://github.com/bollinger/WicketWebsocketsTest/blob/master/src/main/java/com/mycompany/StartWebSocketPage.java



[2]

https://github.com/bollinger/WicketWebsocketsTest/blob/master/src/main/java/com/mycompany/BackgroundWorkPage.java


-- 
Peter Henderson

Reply via email to