-
1. Re: Injection of hibernate session + ScopeType.PAGE
idyoshin Mar 4, 2010 3:27 PM (in response to getboa)try not to inject but receive your entityManager via folowing method
(EntityManager )Components.getInstance("entityManager", true);
Kind regards,
Ilya Dyoshin -
2. Re: Injection of hibernate session + ScopeType.PAGE
getboa Mar 4, 2010 4:02 PM (in response to getboa)Hey Ilyan,
thanks for your reply, but it's still throwing the same exception...
any other idea ?
thanks in advance -
3. Re: Injection of hibernate session + ScopeType.PAGE
idyoshin Mar 4, 2010 4:16 PM (in response to getboa)Actually that should solve the problem (in my case that solved).
does your page-scoped bean is runned inside of the long-running conversation ?
If not, try simply create conversation for the page. I.e. simply change your scope to CONVERSATION and don't propagate your conversation - after navigating to other page SEAM should end that temporal page-scoped conversation. Actually in SEAM, as I've understood from the documentation, everything is inside of the CONVERSATION.
Regards,
Ilya Dyoshin
-
4. Re: Injection of hibernate session + ScopeType.PAGE
getboa Mar 4, 2010 5:15 PM (in response to getboa)actually what i'm doing is, calling a modalPanel where the form is, submit it to my search method and populate a @DataModel which will be shown on a dataTable.
I changed to Conversation scope, it worked, but the dataScroller didn't, if i do try to click on second page of it, nothing happens; it looks like that this @DataModel is no longer in that Conversation although it worked fine on Session scope...What am i doin' wrong?