Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-21 Thread Martin Grigorov
On Thu, Apr 21, 2016 at 8:41 AM, Francesco Chicchiriccò wrote: > On 20/04/2016 17:58, Martin Grigorov wrote: > >> Hi, >> >> There is no point in having more than one WebSocket connections per page. >> And actually, Wicket Native WebSockets do not support it out of the box. >> The registry with th

Re: Websocket message from Spring bean

2016-04-21 Thread Maxim Solodovnik
Finally was able to test it :) Everything works as expected! Thanks a lot for the hint! On Tue, Oct 7, 2014 at 5:49 PM, Maxim Solodovnik wrote: > Thanks a lot for the tip Martin! > will give it a try and write back :) > > On 7 October 2014 16:39, Martin Grigorov wrote: > >> You use request and

Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-21 Thread Martin Grigorov
Hi, Could you please try this code: public abstract class MyWebSocketBehavior extends WebSocketBehavior { private final static MetaDataKey IS_ALREADY_INSTALLED = new MetaDataKey() {}; @Override public void renderHead(Component component, IHeaderResponse response) { Page page

Re: HTTP ERROR:500

2016-04-21 Thread Lon Varscsak
Hey Martin, actually I’m not running in Prod mode, but development. The behavior for the output is different between 7.1 and 7.2 (which is the error message I sent). In 7.1, I don’t see an error message on the page at all, but only in the console. I definitely saw the exception, I guess it wasn’

open connection to async servlet and initiate wicket ajax request, results ComponentNotFoundException

2016-04-21 Thread fachhoch
I am trying to add server push using javascript longpolling and async servlet, a self invoking javascript function makes ajax request to this async servlet , there by keeping the connection open, when this connection is open and a wicket ajax request is initiated, its sometimes failing with Com

Re: open connection to async servlet and initiate wicket ajax request, results ComponentNotFoundException

2016-04-21 Thread Martin Grigorov
Hi, Show us some code please. It is not very clear what you are doing. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 21, 2016 at 10:07 PM, fachhoch wrote: > I am trying to add server push using javascript longpolling and async > servlet, > a self in

Re: open connection to async servlet and initiate wicket ajax request, results ComponentNotFoundException

2016-04-21 Thread fachhoch
This is the javascript file rendered by wicket page, this opens a connection to the async servlet, page has several ajax links, clicking on ajaxlinks updates dom, and sometimes wicket throws ComponentNotFoundException. Initially tried calling MessagePanel.longPoll(data) from wicket page with On

Re: open connection to async servlet and initiate wicket ajax request, results ComponentNotFoundException

2016-04-21 Thread Martin Grigorov
This code doesn't use Wicket.Ajax JavaScript APIs so the Ajax Channels are not involved at all. Please show us the Java code of the servlet. How does it use the page ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 21, 2016 at 10:38 PM, fachhoch wrote:

Re: open connection to async servlet and initiate wicket ajax request, results ComponentNotFoundException

2016-04-21 Thread fachhoch
MessagePanelPolling function is called through a wicket page, the wicket page has an active ajax call to the async servlet, public BasePage(PageParameters pageParameters) { super(pageParameters); add(new MessageCheckBehaviour()); } static cl

Wicket 7 Security and JBoss Keycloak

2016-04-21 Thread David Beer
Hi All I am looking at how to integrate JBoss Keycloak with wicket 7. I am not quite sure where to start the configuration the example given is where the jsp pages are secured by configuration in the web.xml file. Wicket is a little different in that you need to create a Authorization Strategy. I