Having two datascrollers shouldn't matter.

Probably the error is because
#{authorizationResultListBean.lstUsuarios} is request-scoped and the
list no longer exists once you render the page.

On 4/3/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote:

Hi , my name is Angel and I have some problems with datatable paging. The
problem is than only can list the first page, when I move next page list has
desappeared.

I've been reading several post about this problem but nothing seems to work.
I read that the error came from two "datascroller". I've deleted one of them
and the problem is still there.

My code is:



<%/* Lista de Usuarios */%>

<h:panelGrid columns="1" columnClasses="vtop hcenter" cellpadding="0"
cellspacing="0" border="0" styleClass="porcen100 hcenter vtop">

<t:panelTab id="tab1" label="Listado de Usuarios " styleClass="porcen100
hcenter vtop">

<t:dataTable styleClass="porcen100 vtop" id="data" border="0"
bgcolor="#AEB8D4" cellspacing="1"

cellpadding="0"

headerClass="list-header"

rowClasses="datos_impar_off,datos_par_off"

rows="5"

var="usersList"

value="#{authorizationResultListBean.lstUsuarios}"

preserveDataModel="true">



<%/* Columna Id de Usuario */%>

<h:column>

<f:facet name="header">

<t:outputText value="Id Usuario" styleClass="tab3_on" />

</f:facet>

<t:commandLink action="#{usersList.sid}" style="text-decoration:none">

<t:outputText id="id" value="#{usersList.sid}" escape="false"/>

</t:commandLink>

</h:column>



<%/* Columna Nombre de Usuario */%>

<h:column>

<f:facet name="header">

<t:outputText value="Nombre" styleClass="tab3_on" />

</f:facet>

<t:commandLink action="#{usersList.name}" style="text-decoration:none">

<t:outputText id="name" value="#{usersList.name}" escape="false"/>

</t:commandLink>

</h:column>



<%/* Columna Organizacion de Usuario */%>

<h:column>

<f:facet name="header">

<t:outputText value="Organización" styleClass="tab3_on" />

</f:facet>

<t:commandLink action="#{usersList.organization}"
style="text-decoration:none">

<t:outputText id="organization" value="#{usersList.organization}"
escape="false"/>

</t:commandLink>

</h:column>

</t:dataTable>



<%/* Paginacion */%>

<t:dataScroller id="scroll_1"

for="data"

pageCountVar="pageCount"

pageIndexVar="pageIndex"

styleClass="tit_tab"

paginator="true"

paginatorMaxPages="9"

paginatorTableClass="hcenter tit_tab porcen100"

paginatorActiveColumnStyle="font-weight:bold;"

rowsCountVar="rowsCount">

<f:facet name="first" >

<t:graphicImage url="/imagenes/btn_ini_pag.gif" border="0"
style="margin-left:175px;" />

</f:facet>

<f:facet name="last">

<t:graphicImage url="/imagenes/btn_fin_pag.gif" border="0" />

</f:facet>

<f:facet name="previous">

<t:graphicImage url="/imagenes/btn_ant_pag.gif" border="0" />

</f:facet>

<f:facet name="next">

<t:graphicImage url="/imagenes/btn_prox_pag.gif" border="0" />

</f:facet>

<h:outputFormat value="({0} registros encontrados)" styleClass="hcenter
tit_tab" >

<f:param value="#{rowsCount}" />

</h:outputFormat>

</t:dataScroller>

</t:panelTab>

</h:panelGrid>



Please somebody can help me? Thanks a lot!!!
 ________________________________

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Reply via email to