Testing (Ajax)TabbedPanel

2008-02-28 Thread Sven Schliesing
with using too much internal knowledge (e.g. the tabs-container id) of the AjaxTabbedPanel. Sure, this is more an academically problem. But I'd like to know if there's a better approach. Thanks in advance! Sven -- subshell GmbH Sven Schliesing Margaretenstraße 43at +49.40.431 362

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-18 Thread Sven Schliesing
I switched over to using an anonymous overridden WebApplication: -- WebApplication webApplication = new WebApplication() { @Override public Session newSession(Request request, Response response) { return new CustomSession(request); }

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
Neither the constructor of CustomSession nor the constructor of WebSession is called. The error occurs much earlier, as you can see in the stack trace posted in my first post. I think I will drop overriding the default session and work with setAttribute()/getAttribute() instead. Seems to save me

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
Yes, with a normal Wicket-Application it works just perfect. I'm using the SpringWebApplication cause of createSpringBeanProxy() and the automatic init of the configured ApplicationContext (http://cwiki.apache.org/WICKET/spring.html). Manually initializing would be a huge tradeoff for working

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
' I'd say have a look at the wicket-examples esp.: http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.5/wicket-examples/src/main/webapp/WEB-INF/web.xml mf 2008/2/18, Sven Schliesing [EMAIL PROTECTED]: Neither the constructor of CustomSession nor the constructor of WebSession is called

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Sven Schliesing
I think I don't get it :( I narrowed down the problem to this test case. It would be great if you could take a look: --- public class WebApplicationTest { public class CustomSession extends WebSession { public CustomSession(Request request) {

org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Sven Schliesing
Hi, I'm trying to set up testing for my Wicket Application but ran across this error message: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession The page (LoginPage) I'm testing does: (CustomSession) Session.get(); This is the point where the error