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

2016-04-22 Thread fachhoch
I enabled log info org.apache.wicket.protocol.http.RequestLogger, logs show different url in case of error. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/open-connection-to-async-servlet-and-initiate-wicket-ajax-request-results-ComponentNotFoundException-tp4674357p46

Re: Panel.this always giving previous version of the object but not the modified one.

2016-04-22 Thread Martin Grigorov
Please use some pastebin service. It is hard to read and follow this code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 22, 2016 at 10:43 PM, durairaj t wrote: > Thank you Martin. I tried with examples but those are not working in my > case. I don't

Re: Panel.this always giving previous version of the object but not the modified one.

2016-04-22 Thread durairaj t
Thank you Martin. I tried with examples but those are not working in my case. I don't know how to call the onEvent in line number 19 in the below code snippet. Please share me if you have any examples. 1. public class FieldSearchTextField extends MaskedTextField{ 2. ResultRow selectedRow; 3. /*

Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-22 Thread Martin Grigorov
Just to make it more clear: With the new improvement there won't be a need to add just one WSB to the Page. You can add as many as you need, anywhere in the component tree. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 22, 2016 at 10:15 PM, Martin Grigo

Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-22 Thread Martin Grigorov
Hi Francesco, I've just tried it and it works the way I wanted to change it: Now only the first behavior added to a component contributes the JS code that initializes the WS connection. Any other WSBehavior just adds itself to the component tree and later receives all messages (connect, message, c

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

2016-04-22 Thread fachhoch
This error happens only when deployed to staging and not in development box, I cannot run this in debug mode to figure out why only sometimes it fails, is it possible to debug this through logs? I tried log debug for org.apache.wicket.request.IRequestHandler but nothing shows up, is there a w

Re: Wicket 7 Security and JBoss Keycloak

2016-04-22 Thread Martin Grigorov
Hi David, I'm afraid you will have to look deeper in the Keycloac APIs to see how to set the principal yourself (after a successful login) and how to look it up later in the authorization strategy, in case you don't keep a reference to it in your Session. Martin Grigorov Wicket Training and Consu

Re: Wicket 7 Security and JBoss Keycloak

2016-04-22 Thread David Beer
Hi Martin This what I am thinking that I need a similar Authorisation plugging to shiro, my problem is that the security process is set-up in the web.xml file, then the auth method is declare as Keycloak. Which redirects to the provided server and provides a user principal back. Would I still need

Re: Wicket 7 Security and JBoss Keycloak

2016-04-22 Thread Martin Grigorov
Hi, I don't know how Keycloak works but from my experience with Spring Security and Apache Shiro you have to create an AuthorizationStrategy that reads from somewhere (e.g. the Wicket Session or some Subject holder) the logged in User and then compares its roles with the one set in @AuthorizeActio

Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-22 Thread Martin Grigorov
Hi, Thanks! I'll debug it this weekend! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 22, 2016 at 9:38 AM, Francesco Chicchiriccò wrote: > On 21/04/2016 21:23, Martin Grigorov wrote: > >> Hi, >> >> Could you please try this code: >> >> public abstrac

Re: Adding multiple WebSocketBehavior instances to the same page

2016-04-22 Thread Francesco Chicchiriccò
On 21/04/2016 21:23, Martin Grigorov wrote: 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 compone