Getting access to other Baked Beans
Hi,
I have problems with getting access from a Baked Bean to a second one.
This is how I try to get it:
final FacesContext context = FacesContext.getCurrentInstance();
final HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
final HttpSession session = request.getSession();
final WarenkorbBean wk = (WarenkorbBean) session.getAttribute("warenkorb");
Unfortunately, wk has always the value NULL.
"warenkorb" is the name of the Bean which I try to get access to. The "warenkorb" - Bean itself works, I can access it via <h:outputText> for example. But I need it in another Bean.
Here is my declaration in the config file:
<managed-bean>
<managed-bean-name>warenkorb</managed-bean-name>
<managed-bean-class>de.bau.warenkorbverwaltung.ui.WarenkorbBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
Do you have any idea what I forgot?
Thanks in advance!

