Re: HTTPS to HTTP invalidates Session

2016-01-11 Thread Martin Grigorov
Hi, The HttpSession must be created within HTTP request if you want to share it between HTTP and HTTPS requests. A session created by HTTPS request is not shared with HTTP requests. The reason is that the JSESSIONID cookie created in HTTPS is "secure" and it is not preserved for the HTTP requests,

HTTPS to HTTP invalidates Session

2016-01-11 Thread Arjun Dhar
Hi, I have an admin Panel that is on HTTPS. It allows a user to preview a link on the site on HTTP. The problem is when doing that, when I return to the Admin Pane land perform any Ajax request, then what I get is: org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. T

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread Martin Grigorov
JobAdvStates state1 = new JobAdvStates(); JobAdvStates state2 = new JobAdvStates(); JobAdvStates state3 = new JobAdvStates(); List selected = new ArrayList<>(); selected.add(state1); selected.add(state3); ListModel model = new ListModel(selected); List allPossible = new ArrayList<>(); allPossibl

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread smoothe19
Can you display an example? I essentially want to be able to have some of the checkboxes checked (based on a boolean in database) when displayed on the screne -- View this message in context: http://apache-wicket.1842946.n

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread Martin Grigorov
Hi, In new CheckBoxMultipleChoice(id, modelOfCollection, allPossibleChoices) you have to add/remove entries to "modelOfCollection" Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 11, 2016 at 8:29 PM, smoothe19 wrote: > How can I check or uncheck one c

Re: Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2016-01-11 Thread Martin Grigorov
And https://issues.apache.org/jira/browse/WICKET-6073 for Wicket 6.x to use NIO connector. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 11, 2016 at 9:03 PM, Martin Grigorov wrote: > Hi, > > I have improved the quickstart in 7.x/8.x to enable support

Re: Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2016-01-11 Thread Martin Grigorov
Hi, I have improved the quickstart in 7.x/8.x to enable support for JSR-356 websocket in the quickstart by just uncommenting two lines in Start.java: https://issues.apache.org/jira/browse/WICKET-6072 Thank you for all the feedback! Martin Grigorov Wicket Training and Consulting https://twitter.c

Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread smoothe19
How can I check or uncheck one checkbox item from a checkboxmultiple choice I tried mpCheckBoxes.get(0).setDefaultModel(new Model<>(true)); and also mpCheckBoxes.get(0).setDefaultObjectModel(new Model<>(true)); both threw an error List mpDECISIONS = new ArrayList(); CheckBoxMultipleChoice mp

Re: Invalid JS src url for ajax behaviors - degradation after 6.17.0

2016-01-11 Thread Daniel Stoch
Hi, Thanks for your answer. I have tried to reproduce this problem in quickstart app and it seems that it is a problem in my application. Problem is related to Wicket-Ajax-BaseURL encoding, when parameter values contains "#" (eg. abx#xyz). In 6.17.0 there were some problems with these encodings a