Re: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Hi, It would be enough for me if I could get session by id. Is there a possibility? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4284724.html Sent from the Users forum mailing list archive at Nabble.com.

Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
I realize that the servlet container is responsible for URL rewriting and hence adding the jsessionid but I was after an opinion: Is it right that Javascript resources get URLs rewritten to include the jsessionid when search engines access a website? (And indeed for normal users on their first

RE: Is it possible to set the session?

2012-01-11 Thread Chris Colman
Did you wan to get or set the session? Your subject said 'set' but the body asked about 'get'. Hi, It would be enough for me if I could get session by id. Is there a possibility? -- View this message in context: http://apache- wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
I just opened IE and with a new clean session went to our website and voila - IE sees the .js files with jsessionid as different to the ones without it and so there are two of every .js file required by both the home page and the second page I visited. I imagine if user visits a site on a

RE: Javascript resources and jsessionid - existing JIRA issue fixed in 1.4

2012-01-11 Thread Chris Colman
I noticed this is an existing JIRA issue that was apparently fixed in 1.4 but I'm seeing the double package resources in the cache using an up to date 1.5-SNAPSHOT. Existing JIRA issue: https://issues.apache.org/jira/browse/WICKET-2999 I just opened IE and with a new clean session went to our

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Did you wan to get or set the session? Your subject said 'set' but the body asked about 'get'. It would be awesome if I could set the session with a given one. But it is an option to get the session by id, as I have some informations on the session and I want to access them. The problem is

RE: Is it possible to set the session?

2012-01-11 Thread Serban Balamaci
Hello, Maybe pass the sessionid in the url like a query parameter to the page you open in an iframe and then read the url parameter and return from that page a response with a JSESSIONID header equal to the value of the session. Subsequent requests to the page in the iframe will have this

RE: Is it possible to set the session?

2012-01-11 Thread Chris Colman
I had the exact same 'can I SET the session' requirement today. I thought of dealing with search engine crawlers and their stateless view of the site by assigning the same session instance to each request from a given crawler to avoid creating a new session for every request they made. Well I

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
A use case: Imagine that the management of the session in a cookie is disabled in the web server config, so jsessionid is always encoded in the url. If resources don't have the jsessionid in their url then a new temporary Wicket and http sessions will be created and discarded for each request. In

Re: Javascript resources and jsessionid

2012-01-11 Thread Martin Grigorov
The only problem is that each package resource request creates a new Wicket Session in WicketFilter. This may be light or heavy operation, depends on the actual Session impl. And in WicketFilter we do not know whether this is a request to a package resource or to any other IResource impl which

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
This was the first solution. I tried to give the session id as a parameter to the iframe. I tought it's enough and the framework will do the rest. It didn't work. You said that I have to return from that page a response with a JSESSIONID header equal to the value of the session. . Can you

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
I can see things like DynamicWebResource might need a session as what it streams out could depend on session state but most instances of things like images, .css, .js, etc., are static. Perhaps some kind of convention could be used in the URL so that the WicketFilter could quickly and easily tell

RE: Is it possible to set the session?

2012-01-11 Thread Serban Balamaci
Hi Cosmin, What have you tried? Sending 1. .../frame_page;jsessionid=123 or 2. .../frame_page?jsessionid=123. The first option may work while the second it's normal not to have any impact on the session but can be used to get the sessionid as a parameter. The 1. option if it works, is not really

Re: Regarding Stack Overflow exception

2012-01-11 Thread smsmaddy
I have tried with 1.5.2 and tried by migrating few classes and tested the small feature which was part of stack overflow message error...And now, the fix is working fine locally I have to upgrade complete application to 1.5.2 and update you the results sooner Thanks for the support :) -

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Hi again, Thanks for your replay and for your time to write the code. But I didn't understand why to do a redirect from iframe page. Which is /page_to_redirect_after_set_session? I don't want any redirect from my iframe page. And where should I put that code? In constructor? And secondary, I use

RE: Is it possible to set the session?

2012-01-11 Thread Serban Balamaci
You need two requests because in the first one you don't have yet have any session attached to the request you make to the server. And the server response will just be to attach JSESSIONID cookie and tell the browser to repeat the first request with the JSESSION cookie attached(you can redirect to

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
I just had a look at the 1.5 WicketFilter source code and it appears not to be creating or finding a Wicket Session at all - which is a good sign - although maybe it's created somewhere else now. The only problem is that each package resource request creates a new Wicket Session in WicketFilter.

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
As it turns out WicketFilter isn't responsible for directly creating a session but some code it calls indirectly in BufferedResponseMapper attempts to locate a sessionId which for some reason, creates a session if there is none yet: protected boolean hasBufferedResponse(Url url) {

Intermittent issue of data overwriting between browser tabs in a multi window session with forms

2012-01-11 Thread T A
Hi, I am relatively new to Wicket and working on maintenance of a 1.3.7 Wicket application. The application is a CMS and there is a very intermittent issue, but serious issue, that I am trying to reproduce and diagnose. It appears that updates to content in one application window is

RE: Javascript resources and jsessionid

2012-01-11 Thread Chris Colman
I just checked with 1.5.x and for stateless pages all bookmarkable page links do not incur the jsessionid suffix for a non cookie client. Once an Ajax link is added to the page however the jsessionid suffix appears on all links which makes sense as the page is no longer stateless once Ajax gets

Re: Model problem with my own component

2012-01-11 Thread Wayne W
thanks Sven On Wed, Jan 11, 2012 at 6:46 PM, Sven Meier s...@meiers.net wrote: Hi, add(new ProductImage(image, getDefaultModel()); this line is causing the null product. I thought when setting the default model all the children are visited and model updated.? No, not at all. Either

DateTextField Problem

2012-01-11 Thread Seçil Aydın
I am using DateTextField and DatePicker components for getting date value of the user but I have a problem with the component.The problem is when user enters 99.99. to the text field and clicks on submit button it gives an error(invalid date) -its ok till now- but when user wants to change the