Re: StackOverflow while getting browser info

2012-03-14 Thread Andre Schütz
Hi, Thank you for the hint. Do you have an idea where should place my code? I tried it in the constructor of my index webpage, but the setLocale method created a page reload that did not occur in the Webapplication constructor. Thanks, Andre --- Andre Schütz www.faustas.de Dan Retzlaff

Re: StackOverflow while getting browser info

2012-03-14 Thread Dan Retzlaff
It seems a bit hacky, but you might try ThreadContext.setSession(session) in MyApplication#newSession right after you construct MySession. 2012/3/14 Andre Schütz andre-p...@gmx.de Hi, Thank you for the hint. Do you have an idea where should place my code? I tried it in the constructor of my

StackOverflow while getting browser info

2012-03-13 Thread André Schütz
Hi, I have the following code in my MyApplication class: {CODE} public void init() { super.init(); getRequestCycleSettings().setGatherExtendedBrowserInfo(true); getResourceSettings().setThrowExceptionOnMissingResource(false); ... } public Session newSession(Request request,

Re: StackOverflow while getting browser info

2012-03-13 Thread Dan Retzlaff
Andre, check out this javadoc comment on Session#getClientInfo: * Note: Do strongnot/strong call this method from your custom {@link Session} constructor * because the temporary page needs a constructed {@link Session} to be able to work. Dan 2012/3/13 André Schütz andre-p...@gmx.de Hi, I