This content has been marked as final.
Show 1 reply
-
1. Re: Exception: No session or session closed
jacob.orshalick Sep 27, 2007 9:17 AM (in response to damatrix)"damatrix" wrote:
I read that using the ManagedPersistenceContext configured in components.xml and injected in your code does not throw LazyInitializationException (hope i got that right :-) ). I was quite surprised to find this exception being thrown.
This is correct. The first issue I notice that you are not outjecting the "fair" DataModelSelection. You will have to explicitly outject a DataModelSelection to make it available to the view. While fair is set in the FairListBean, it will not be directly available in the context.
Another question, why are you using SESSION scope? An SMPC is intended for use within a conversation (and conversations are almost always recommended when using Seam over dropping things in the session).