Hi,
tomasz bandura wrote
> I use click (2.3.0) and spring (3.2.4)
Apache Click 2.3.0 was developed and tested with Spring *2.5.6* only.Spring
3 doesn't seem to be a simple drop in replacement for Spring 2, see
https://issues.apache.org/jira/browse/CLK-652
<https://issues.apache.org/jira/browse/CLK-652>
tomasz bandura wrote
> java.lang.RuntimeException: No Context available on ThreadLocal
> ContextStack...at com.mytest.page.BaseTemplate.
> (BaseTemplate.java:19)where BaseTemplate.java:19 rootMenu =
> menuFactory.getRootMenu();
AFAIK this kind of message might happen when the component is instantiated
before the Page is ready.Basically it should happen after, so in onInit():
public void onInit() { super.onInit(); MenuFactory
menuFactory = new MenuFactory(); rootMenu =
menuFactory.getRootMenu(); addControl(rootMenu);}
Adrian.
--
View this message in context:
http://click.1134972.n2.nabble.com/spring-menu-RuntimeException-tp7578737p7578739.html
Sent from the click-user mailing list archive at Nabble.com.