0 Replies Latest reply: Apr 12, 2012 6:01 AM by 927518 RSS

    Lose page number

    927518
      Hello,

      I need desperatly your help.

      I´m using JSP in oracle portlets.

      I have this table in a JSP that is in a portlet:

      <td valign="top" width="100%">
      <display:table name="<%=ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_DOCUMENTOS%>"
      pagesize="10" cellpadding="1" sort="list" defaultsort="1"
      defaultorder="ascending"
      decorator="ccf.portal.portlets.intranet.conferencia.resource.FacturaDecorator">
      <display:column property="descricaoLote" sortProperty="ordenacaoLote"
      title="Lote" sortable="true"
      style="width: 20%; align: left;"
      headerClass="TableHeader"/>
      <display:column property="descricaoDocumento"
      sortProperty="numeroDocumento"
      title="Nº. da Prescrição" sortable="true"
      style="width: 10%; align: left;"
      headerClass="TableHeader"/>
      <display:column property="columnDocumentosParaDownload"
      title="Digitalização(Presc./Prest.)"
      style="width: 10%; align: center;"
      headerClass="TableHeader"/>
      <display:column property="reclamado" title="Reclamado?"
      style="width: 15%; align: center;"
      headerClass="TableHeader"/>
      <display:column property="columnNomeFicheiroAF" title="Notificação"
      style="width: 15%; align: center;"
      headerClass="TableHeader"/>
      <!--display:column property="columnNotificacao"
      title="Notificação"
      style="width: 8%; align: center;"
      headerClass="TableHeader"/-->
      <display:column property="columnAccoesSobreDocumento" title=""
      sortable="false" style="width: 20%; align: center;"
      headerClass="TableHeader"/>
      <!--display:column property="columnSeleccao" title="Reclamar"
      style="width: 6%; align: center;"
      headerClass="TableHeader"/-->
      <display:footer>
      <td> </td>
      </display:footer>

      <!--tr>
      <td>&nbsp</td>
      <td>&nbsp</td>
      <td>&nbsp</td>
      <td>&nbsp</td>
      <td>&nbsp</td>
      <td>&nbsp</td>
      <td align="middle">
      <script type="text/javascript">
      document.write('<a class="CommandButton">RECLAMAÇÕES</a>');
      </script>
      <noscript>
      <input type="submit" name="<%= ConsultarProcessosConferenciaPortletBundle.CHAVE_PARAM_ACTION_REQUEST_ID %>" value="<%= ConsultarProcessosConferenciaPortletBundle.CHAVE_PARAM_ACTION_RECLAMAR_VARIOS %>"/>
      </noscript>
      </td>
      <td> </td>
      </tr-->

      <display:setProperty name="sort.amount" value="list"/>

      <display:setProperty name="css.tr.odd" value="colorOdd"/>

      <display:setProperty name="css.tr.even" value="colorEven"/>

      <display:setProperty name="css.th.sortable" value="TableHeader"/>

      <display:setProperty name="css.table" value="TableList"/>

      <display:setProperty name="paging.banner.item_name" value="documento"/>

      <display:setProperty name="paging.banner.items_name"
      value="documentos"/>



      This table has a limit of 10 results for page, when i'm in a page number greater then 1 and i click in the collumn "columnAccoesSobreDocumento" it shows in the same page the table above and the table below, and then i lose the pagination of the table above, please can anyone help me ?


      <tr id="tr_listaErros" style="display: '';">
      <td valign="top" width="100%">
      <display:table name="<%=ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_ERROS_POR_DOCUMENTO%>"
      pagesize="10" cellpadding="1" sort="list" defaultsort="1"
      defaultorder="ascending"
      decorator="ccf.portal.portlets.intranet.conferencia.resource.TabelaErrosPorDocumentoDecorator">
      <display:column property="designacaoErro" sortProperty="designacaoErro"
      title="Designação Erro" sortable="true"
      style="width: 35%; align: left;"
      headerClass="TableHeader"/>
      <display:column property="detalhe" sortProperty="detalhe"
      title="Detalhe" sortable="true"
      style="width: 15%; padding-left: 5px; align: left;"
      headerClass="TableHeader"/>
      <display:column property="valorFacturado" sortProperty="valorFacturado"
      title="Facturado" sortable="true"
      style="width: 8%; align: center;"
      headerClass="TableHeader"/>
      <display:column property="valorConferido" sortProperty="valorConferido"
      title="Processado" sortable="true"
      style="width: 8%; align: center;"
      headerClass="TableHeader"/>
      <display:column property="valorDiferenca" sortProperty="valorDiferenca"
      title="Diferença" sortable="true"
      style="width: 8%; align: center;"
      headerClass="TableHeader"/>
      <display:column property="informacao" sortProperty="informacao"
      title="Informação" sortable="true"
      style="width: 20%; align: center;"
      headerClass="TableHeader"/>
      <% if (detalheFactura.isMostraDivReclamacao() && entidade.isConvencionado() && detalheFactura.getUrlEfectuarReclamacao() == null) { %>
      <display:column property="columnSeleccao" title="Reclamar"
      style="width: 6%; align: center;"
      headerClass="TableHeader"/>
      <display:footer>
      <tr>
      <td align="left" style="color: black;"> </td>
      </tr>
      </display:footer>

      <% } %>

      <display:setProperty name="css.tr.odd" value="colorOdd"/>

      <display:setProperty name="css.tr.even" value="colorEven"/>

      <display:setProperty name="css.th.sortable" value="TableHeader"/>

      <display:setProperty name="css.table" value="TableList"/>

      <display:setProperty name="paging.banner.item_name" value="erro"/>

      <display:setProperty name="paging.banner.items_name" value="erros"/>
      </display:table>
      </td>