Hi all,

We're developing a test application with Tapestry 4.0,
Spring and Hibernate. We have a typical filter page
with some fields in the upper area and a table with
the result rows in the lower one. The filter fields
include some drop-downs. So to render a page, some
queries to the database are necessary (the drop-downs
and the proper filtered results come from the db). The
table is rendered with contrib:Table, and the results
query includes only the rows for this page. 

The business logic resides in Session EJB, so we would
like to reduce the trips to them. Due to performance
reasons, we need to get all the page data in one call
(the drop-downs and the results). We think the best
way to do it is to make the call in the
pageBeginRender method and feed the results to the
different models.

We have implement a custom IPropertySelectionModel to
feed the drop-downs, but we face a problem with the
table. If we use IBasicTable, the result query is made
when the table is render, so we cannot include it in
the same EJB call. But if we implement our own
ITableModel, we cannot access some Hivemind services
as ExpressionResolver to resolve OGNL expressions,
because these are injected only in the table
component.

How can we create a table model which can be
initialized without data, and in the pageBeginRender
ask for the first row index and page length to fill it
with data before render?

Thank you very much.


                
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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

Reply via email to