Re: grid dont link hibernate.classic.session?

2012-04-27 Thread Lance Java
The grid is decoupled from hibernate, your implementation of "source" is
tied to hibernate.

tapestry-hibernate provides a service of type org.hibernate.Session and you
have declared an instance of org.hibernate.classic.Session in your page.


grid dont link hibernate.classic.session?

2012-04-27 Thread netdawg
Doing text search, using Hibernate cookbook recipe, using impl of
org.hibernate.search.FullTextSession interface.  

When the list of entities is returned as 

return fullTextSession.createFullTextQuery(query, Person.class).list();

grid barfs the following: 

[ERROR] pages.Persons Render queue error in SetupRender[Persons:grid]:
Failure reading parameter 'source' of component Persons:grid:
$Session_b077f99da992 cannot be cast to org.hibernate.classic.Session
org.apache.tapestry5.ioc.internal.util.TapestryException: Failure reading
parameter 'source' of component Persons:grid: $Session_b077f99da992 cannot
be cast to org.hibernate.classic.Session

[...]


Several questions:  How else are we supposed to do Hibernate Search?  Why is
the grid worrying its poor brain on the Hibernate Session?  It should be
decoupled from it.  Just be rendering the resultSet (List) instead.  

Any tips appreciated...Thanks. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-tp5669885p5669885.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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