Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
That would be awesome Eelco if that happens.  It does make more sense to have the request available before the session is created.  Please let me know if and when you make this change so I can change my code and/or test this for you. On 3/16/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: It's actua

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Eelco Hillenius
It's actually pretty awfull. I don't really see the point of having to create the session upfront AND delegating the creation of the request cycle to the session which in turn delegates it to the factory which is set in the application. The problems I have with the current handling: 1) It seems to

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Igor Vaynberg
great.On 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: Yeah it works.  However, since the new request cycle is called on every request I had to put in an if statement to test for session.isNew().  On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: let me know if that worked.-IgorOn 3/16/06

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
Yeah it works.  However, since the new request cycle is called on every request I had to put in an if statement to test for session.isNew().  On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: let me know if that worked.-IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: Cool.  Thanks Ig

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Igor Vaynberg
let me know if that worked.-IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: Cool.  Thanks Igor.On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: instead of using a session factory try using a request cycle factory and setting the style into the created websession there. -IgorOn 3/16/0

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
Cool.  Thanks Igor.On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: instead of using a session factory try using a request cycle factory and setting the style into the created websession there. -IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: It looks like the RequestCycle is not fil

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Igor Vaynberg
instead of using a session factory try using a request cycle factory and setting the style into the created websession there.-IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: It looks like the RequestCycle is not filled in until RequestCycle cycle = session.newRequestCycle(request, respons

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
It looks like the RequestCycle is not filled in until RequestCycle cycle = session.newRequestCycle(request, response); in WicketServlet (line 209 for Wicket 1.2 Beta 1)On 3/16/06, Andrew Berman <[EMAIL PROTECTED]> wrote: I should've mentioned that I already tried that and when I call RequestCycle.

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Andrew Berman
I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.On 3/16/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:you can try: ((WebRequest)RequestCycle.get().getRequest()). -IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED] > wrote:I have a requirement where

Re: [Wicket-user] Parsing URL upon session creation

2006-03-16 Thread Igor Vaynberg
you can try: ((WebRequest)RequestCycle.get().getRequest()).-IgorOn 3/16/06, Andrew Berman <[EMAIL PROTECTED] > wrote:I have a requirement where I need to parse the URL to extract a username on session creation.  For example, http://username.foo.com/..., I need to pull out the username and set