Hello I have a "small" problem with the @EJB anotation.
I have created the following Bean:
@Stateless
public class CathegoryFacadeBean implements CathegoryFacadeRemote {
@PersistenceContext(type=PersistenceContextType.TRANSACTION) EntityManager em;
public List getAllCathegories() {
List cats = em.createNamedQuery("findAllCathegory").getResultList();
return null;
}
}
I am then using
@EJB CathegoryFacadeRemote cathegories;
from a JSF Backing bean. But the cathegories is null! I also tried to specify the "name" attribute of the anotation but no success. Can you tell me what to do in order to use the dependency injection?
Thank you in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014582#4014582
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014582
I'll switch to icefaces as soon as someone shows me a working conversation switching, theme switching, a tabswithcing that does show the tab that is selected in one workspace/conversation also in the next workspace AND correct way of configuring all this with facelets. I've had a lot more problems with icefaces than I'd like and a lot less with tomahawk. I do like you guys promoting icefaces, but make them realize that it is a major requirement to have an open issue system up and running... (it is not even on their list on how to build a community)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014579#4014579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014579