Hi Pablo,

Actually this was exactly what I meant by "using/implementing"
external paging...
You can use displaytag to handle the view layer but you'll have to
implement the backend yourself.
Meaning playing with limit and offset on the sql side to get the
'partial list'. Let's say, you want to display 20 results per page,
for the first page the partial list to pass to displaytag is a list
filled with the first 20 results only (not the full collection). Then
when going to page 2, you'll have to fetch results 21 to 40 and so on.
Don't know if I'm clear enough, anyway you can take a look at these
links to get the feeling on what you'll eventually have to do:
http://www.devx.com/Java/Article/21383
http://www.jroller.com/milcoder/entry/using_partial_lists_in_displaytag

Hope it helps
Yannick

On 8/30/07, Pablo Fernández <[EMAIL PROTECTED]> wrote:
>
>  Hello Yannick, I just don't get it right.
>  colPersonas is the full collection of 21.000 items and tamanioColeccion is
> it's size. Both attributes are in sessionScope, colPersonas is seen by
> displayTag under the name attribute, what should I do with that partial list
> matching the pagesize number you told me about? How do I get it?
>
>  Thanks again!
>
>  Pablo.
>
>  Yannick Haudry escribió:
>  Is your colPersonas the full collection of 21.000 items ? In this
> case, the size attribute is just right, but you have to give a partial
> list (name attribute), meaning a collection with size normally
> matching the pagesize number.
>
> Yannick
>
>
> On 8/29/07, Pablo Fernández <[EMAIL PROTECTED]> wrote:
>
>
>  Yes, I have already tried that as follows:
>
>  This are the involved lines in my Struts Action:
>  sessionManager.setAttribute("colPersonas", colPersonas); // the
> collection obtaind via mysql query.
>  sessionManager.setAttribute("tamanioColeccion", new
> Integer(colPersonas.size())); // collection's size in session scope.
>
>  This is the new display:table tag in the JSP:
>
>  <display:table class="display" excludedParams="*"
> id="adm.busquedaPersona.colPersonas" pagesize="20"
> name="sessionScope.colPersonas" sort="external" partialList="true"
> size="sessionScope.tamanioColeccion" requestURI="busquedaPersona.do"
> style="width:98%"
> decorator="conicet.apps.eva.web.administrador.decorator.CBusquedaPersonaWrapper">
>
>  But it gets hung, like loading the page that never appears... am I missing
> something?
>
>  Thanks!
>
>  Pablo.
>
>  Yannick Haudry escribió:
>  Hi Pablo,
>
> You should really consider using/implementing external paging...
> http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
>
> Yannick
>
> On 8/29/07, Pablo Fernández <[EMAIL PROTECTED]> wrote:
>
>
>  Hello, I have a collection of about 21.000 rows to display via display
> tag. It's taking displaytag about 2 minutes to render the page (first
> time it's loaded), is there any way to make this better? I'm using
> displaytag 1.1.
>
> Here's the JSP code:
>
> <display:table class="display" excludedParams="*"
> id="adm.busquedaPersona.colPersonas" pagesize="20"
> name="sessionScope.colPersonas" requestURI="busquedaPersona.do"
> style="width:98%"
> decorator="administrador.decorator.CBusquedaPersonaWrapper">
>  <display:setProperty name="paging.banner.placement" value="both"/>
>  <display:column property="categoriaW" title="Categoría"
> sortable="true" style="align:center"/>
>  <display:column property="legajoW" title="Legajo"
> sortable="true" style="align:center"/>
>  <display:column property="nomapW" title="Apellido y Nombre"
> sortable="true" style="align:center"/>
>  <display:column property="tipoNroDocW" title="Tipo y Nro Doc."
> sortable="true" style="align:center"/>
>  <display:column property="cuilW" title="Cuil" sortable="true"
> style="align:center"/>
>  <display:column property="estadoW" title="Estado"
> sortable="true" style="align:center"/>
>  <display:column property="verW" title="Ver" sortable="false"
> style="align:center"/>
> </display:table>
>
> Thanks in advance!
>
> Pablo.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to