This content has been marked as final.
Show 4 replies
-
1. Re: PAGE scope and Ajax dataTable scroll
pmuir Nov 15, 2007 5:11 PM (in response to demetrio812)What type of persistence context do you use?
-
2. Re: PAGE scope and Ajax dataTable scroll
demetrio812 Nov 15, 2007 5:23 PM (in response to demetrio812)This is my bean:
@Name("myBean") @Scope(ScopeType.PAGE) public class MyBean implements Serializable { @In (create=true) EntityManager entityManager; ...
I understood that the cause is because the short session of the entityManager session but as it is a seam component (and not an EJB), how can I extend the persistence context?
Is there some way as for long-running conversations?
or have I to use EJB?
Thanks
Demetrio Filocamo -
3. Re: PAGE scope and Ajax dataTable scroll
pmuir Nov 16, 2007 5:01 AM (in response to demetrio812)I think you are probably right, use a LRC is the simplest way to make this work.
I'll think about this one. -
4. Re: PAGE scope and Ajax dataTable scroll
demetrio812 Nov 16, 2007 6:15 AM (in response to demetrio812)I used LRC and CONVERSATION scope, btw it would be good if page layout would mantain the same persistence context across ajax calls, if not it's impossible to use PAGE scope, ajax e JPA (of course EAGER fetch would work for datascrolling problem but I would like to use Lazy fetch)...
thank you!
Demetrio Filocamo