-
1. Re: EntityManager null
hstang May 23, 2007 4:06 PM (in response to srpantano)change name from "em" to "entityManager"
I don't know why, but Seam hard codes to look for "entityManager" . -
2. Re: EntityManager null
srpantano May 23, 2007 4:44 PM (in response to srpantano)Works fine, thanks!
But, this is a bug, doesn´t it? -
3. Re: EntityManager null
gavin.king May 24, 2007 9:32 AM (in response to srpantano)It is not hardcoded, it is a default, which may be configured in components.xml!
-
4. Re: EntityManager null
davidjoseph Sep 6, 2007 2:17 PM (in response to srpantano)This is a bug!
This is what it says in the most recent reference documentation:If your Managed Persistence Context isn't called entityManager, then you need to set it in components.xml: <component name="org.jboss.seam.ui.EntityConverter"> <property name="entityManager">#{em}</property> </component>
But first of all,
it is not org.jboss.seam.ui.EntityConverter but org.jboss.seam.ui.converter.EntityConverter
And second of all: it is impossible to use another name for the entitymanager as specified in the documentation. I've tried everyting. The only possible way to make this work is to changer every em reference in you code to entityManager. This can not be hardcoded! The is a SERIOUS BUG -
-
6. Re: EntityManager null
davidjoseph Sep 6, 2007 2:37 PM (in response to srpantano)very funny
I've been trying to get Seam up and running here at our company for some quite some time now, but I'm often confronted with those kind of annoying little things. I do appreciate the help I get here but do not have the time to check the forum all the time for help on all these configuration issues. I think i'll try again in a year or so... -
7. Re: EntityManager null
pmuir Sep 6, 2007 3:22 PM (in response to srpantano)Actually, org.jboss.seam.ui.EntityConverter is correct.
And, yes, it does work as described in reference manual (i just checked) so no serious bug just serious user error.
You should have a read of http://en.wikipedia.org/wiki/Software_release_cycle#Beta as well, should be enlightening. -
8. Re: EntityManager null
psternon Oct 15, 2007 10:05 AM (in response to srpantano)you probably have a exception about the rendering of the <h:selectOneMenu.
Replace that by a trinidad component.
We had the same issue and that fixed our issue