In my JSF file:
<h:commandButton type="submit" value="Goto pizza shop.." action="#{a.initial}"/>
In the bean class of session bean a:
| @EJB public CustomerContext b;
|
| public String initial() {
| b.initial();
| }
|
And finally in the bean class of session bean b:
| @DataModel
| private List<MenuItem> outMenuItems=new ArrayList<MenuItem>();
|
| public String initial() {
|
| }
|
My problem now is, that outMenuItems is not propagated to the calling
JSF page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988909#3988909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988909
My session bean A instantiates a POJO B, which is not
container managed (so B is no session bean itself), but
defines annotations for attributes, like
@PersistenceContext
private EntityManager em;
Since B is not container managed, the annotation not influences
the attribute "em". So is there a manual way to "execute"
dependencies on instantiated objects (perhaps one can use the
context of the instantiating session bean)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988903#3988903
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988903