> when it happened to me it was because some of the cells in the grid were 
> referencing lazily-loaded attributes (sub-entities) of the entity your grid 
> is paging on.

Are you querying the database when the paging happens? The session is
opened for the entire request so you shouldn't be getting this message
if you are loading the objects fresh from the database, or rerunning
the search. If the results you are paging through has been stored in
the session or elsewhere then they are not associated with the active
session.

Josh

On Fri, Jun 11, 2010 at 9:41 AM, Jim O'Callaghan <jc1000...@yahoo.co.uk> wrote:
> Coincidence I am getting this today also Borut.  Someone here may be able to 
> give you more advice, but when it happened to me it was because some of the 
> cells in the grid were referencing lazily-loaded attributes (sub-entities) of 
> the entity your grid is paging on.  You can either exclude these items using 
> the 'exclude' parameter of your grid, or ensure they are eagerly loaded in 
> your persistence annotations.  There may be some equivalent of an OSIV filter 
> available for Tapestry, I am not sure.
>
> Regards,
> Jim.
>
> -----Original Message-----
> From: Borut Bolcina [mailto:borut.bolc...@gmail.com]
> Sent: 11 June 2010 16:39
> To: List Tapestry User
> Subject: tapestry-hibernate grid second page Session is closed
>
> Hello,
>
> after a while I am again coding with Tapestry. This time I have a chance to
> use Hibernate, Lucene and their bridge Hibernate Search.
>
> I created a search component which uses org.hibernate.search.FullTextQuery
> to search the index. I am using tapestry grid component to display all the
> results (as described in Forms in Tapestry (Part Two)).
>
> The results get displayed just fine, but when I click on the grid pager to
> display a second page of the results I am getting:
> Render queue error in SetupRender[Index:grid]: Failure reading parameter
> 'source' of component Index:grid: Session is closed!
>
> org.hibernate.SessionException
> Session is closed!
>
> As I am new to Hibernate, any clue is appreciated.
>
> Thanks,
> Borut
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to