I created issue WICKET-3477.
I first wanted to confirm that my approach was the right one.
On 23/02/2011 2:20 PM, Martin Grigorov wrote:
Please create a quickstart and attach it to a ticket.
On Wed, Feb 23, 2011 at 6:47 PM, Bertrand Guay-Paquet<
ber...@step.polymtl.ca> wrote:
Hi,
I am using Wicket 1.5 RC1.
I want to set a default timezone for client sessions so I added the
following line at the end of my CustomSession constructor:
getClientInfo().getProperties().setTimeZone(TimeZone.getTimeZone("GMT"));
Doing this coupled with getGatherExtendedBrowserInfo() == true however
yields a null exception.
Some analysis:
In WebSession#getClientInfo(), there is no clientInfo yet and
getGatherExtendedBrowserInfo() is true so a redirect is attempted.
The line "IRequestHandler activeRequestHandler =
requestCycle.getActiveRequestHandler();" produces activeRequestHandler ==
null.
Since there is no request handler, the following line "String url =
requestCycle.urlFor(activeRequestHandler).toString();" gives a null
exception as urlFor returns null.
If getGatherExtendedBrowserInfo() == false, the default timezone set in the
Session constructor works fine.
Is this the correct way to set a default time zone?
Thank you
Bertrand Guay-Paquet
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org