Re: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread
@Dan, Thank you so much for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-There-is-no-application-attached-to-current-thread-tp4447781p4451269.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
org.apache.wicket.WicketRuntimeException: There is no application attached to current thread
Hi, I'm trying to make example using wicket 1.5.4 and spring work but I keep having this exception: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread... My example defines also a servlet filter that is applied just after the WicketFilter in web.xml. This filter uses ThreadLocal to set/unset a variable around each request/response cycle. I've noticed that if I disable the filter, my example works fine, but I really need it to to pass a variable via the ThreadLocal: (static final ThreadLocalMaplt;String, Serializable THREAD_OBJECT_CONTEXT = new ThreadLocalMaplt;String, Serializable();) Any idea about why wicket fails to accept such a filter please? Is there a workaround please? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-There-is-no-application-attached-to-current-thread-tp4447781p4447781.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Sessions, serialization and Cayenne
the datacontext was lost I think this is the root cause of your problems. A cayenne dataContext is generally created once for all for each web session where it is stored. You should have a http://cayenne.apache.org/doc30/tutorial-webapp.html web filter that stores this dataContext in the ThreadLocal context in order to use it in the persistence layer of your application like the following : ObjectContext context = BaseContext.getThreadObjectContext(); List artists = context.performQuery(query); Make sure you are not loosing the dataContext after each request. take a look at http://cayenne.apache.org/doc30/tutorial-webapp.html this link for more information -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Sessions-serialization-and-Cayenne-tp3452466p3452694.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Sessions, serialization and Cayenne
Christian, I think what you have suggested already exists in the Cayenne documentation (the link I already posted in my last answer). One more thing is that this filter must be inserted BEFORE the wicket one. By the way, did you see my comment on your website about the use of cayenne and wicket ? If so, any answer ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Sessions-serialization-and-Cayenne-tp3452466p3452759.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test pages with selenuim
Do you know that wicket provides a page tester ? If not take a look at http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/tester/WicketTester.html WicketTester -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3452716.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org