Don’t be to hard on me, this is my first try with JSF.
I have a ManagedBean with ApplicationScope which shall hold some information for all visitors. Now it should be able to change the information in this bean, but I want that done from some other bean.
How can I link my beans? Is there some autowire annotation or how do you build a datastructure with more than one bean?
With JSF2 you can inject one bean into another bean.
Inside
faces-config.xmluse the following to injectvisitorBeantoappScopeBean.Don’t forget to add visitorBean field (with getters and setters) inside AppScopeBean.