Hi Shymon,

If you don't want the pager to show up at all on the grid component, you
can set

  pagerPosition="none"

on the grid.  This might prevent the row count from being generated at
all.

Andy

On Tue, 2008-10-14 at 00:50 -0700, shymon wrote:
> 
> 
> Renat Zubairov wrote:
> > 
> > Hello
> > 
> > You may have a look on the implementation of the GridDataSource for
> > Hibernate
> > 
> > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java?view=markup
> > 
> > BR
> > Renat
> > 
> > 
> 
> Not very helpful. I don't know Hibernate but as I understand there are two
> methods used in this impl. of GridDataSource: 
> 
>     Integer result = (Integer) criteria.uniqueResult(); - which returns
> number of rows
> 
> and 
> 
>      preparedResults = crit.list(); - which do the actual query.
> 
> As I mentioned in my first post, search engine which I use doesn't have
> suchmethods. The only one I have is Query({query_params}) which returns
> given portion of results and the total number of results.
> 
> I can perform Query in getAvailableRows(), but then I would have to send ALL
> results through XML-RPC and limit them in prepare method - I don't think
> it's a good idea...
> 
> regards,
> Shymon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to