Hello,
I have a problem regarding the display table.
Let me explain my problem.
Assume that I want to display a list of data in a table, each page contains 10 records. So when I clicked on page no.2, it will showing records from 11 to 20.
At this moment, I have click submit button to save the changes I did in page 2. So now my question is, after saved, it should be remain the page 2, but now it show "[First/Prev]1, 2, 3, 4 [Next/Last]" page 1 is highlighted.
And i found that when i clicked on the numbered pages list, parameter "d-xxxxxxx-p=2"(just an example) will be appended in the url.
My question is how can i set this value?
I can get doing this:
String numero = request.getPara meter("d-49653-p");
but in can´t set.
My table is:
<display:tabl e name="<%=Consul tarProcessosCon ferenciaPortlet Bundle.CHAVE_AT RIBUTO_LISTA_DO CUMENTOS%>"
pagesize="10" cellpadding="1" sort="list" defaultsort="1"
defaultorder="a scending"
decorator="ccf. portal.portlets .intranet.confe rencia.resource .FacturaDecorat or">
<display:colu mn property="descr icaoLote" sortProperty="o rdenacaoLote"
title="Lote" sortable="true"
style="width: 20%; align: left;"
headerClass="Ta bleHeader"/>
<display:colu mn property="descr icaoDocumento"
sortProperty="n umeroDocumento"
title="Nº. da Prescrição" sortable="true"
style="width: 10%; align: left;"
headerClass="Ta bleHeader"/>
<display:colu mn property="colum nDocumentosPara Download"
title="Digitali zação(Presc./Prest.)"
style="width: 10%; align: center;"
headerClass="Ta bleHeader"/>
<display:colu mn property="recla mado" title="Reclamad o?"
style="width: 15%; align: center;"
headerClass="Ta bleHeader"/>
<display:colu mn property="colum nNomeFicheiroAF " title="Notifica ção"
style="width: 15%; align: center;"
headerClass="Ta bleHeader"/>
<!--display:column property="colum nNotificacao"
title="Notifica ção"
style="width: 8%; align: center;"
headerClass="Ta bleHeader"/-->
<display:colu mn property="colum nAccoesSobreDoc umento" title=""
sortable="false " style="width: 20%; align: center;"
headerClass="Ta bleHeader"/>
<!--display:column property="colum nSeleccao" title="Reclamar "
style="width: 6%; align: center;"
headerClass="Ta bleHeader"/-->
<display:footer >
<td> </td>
</display:footer>
<!--tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td align="middle">
<script type="text/javascript">
document.write( '<a class="CommandB utton">RECLAMAÇ ÕES</a>');
</script>
<noscript>
<input type="submit" name="<%= ConsultarProces sosConferenciaP ortletBundle.CH AVE_PARAM_ACTIO N_REQUEST_ID %>" value="<%= ConsultarProces sosConferenciaP ortletBundle.CH AVE_PARAM_ACTIO N_RECLAMAR_VARI OS %>"/>
</noscript>
</td>
<td> </td>
</tr-->
<display:setPro perty name="sort.amou nt" value="list"/>
<display:setPro perty name="css.tr.od d" value="colorOdd "/>
<display:setPro perty name="css.tr.ev en" value="colorEve n"/>
<display:setPro perty name="css.th.so rtable" value="TableHea der"/>
<display:setPro perty name="css.table " value="TableLis t"/>
<display:setPro perty name="paging.ba nner.item_name" value="document o"/>
<display:setPro perty name="paging.ba nner.items_name " value="document os"/>
Thanks to everyone
I have a problem regarding the display table.
Let me explain my problem.
Assume that I want to display a list of data in a table, each page contains 10 records. So when I clicked on page no.2, it will showing records from 11 to 20.
At this moment, I have click submit button to save the changes I did in page 2. So now my question is, after saved, it should be remain the page 2, but now it show "[First/Prev]1, 2, 3, 4 [Next/Last]" page 1 is highlighted.
And i found that when i clicked on the numbered pages list, parameter "d-xxxxxxx-p=2"(just an example) will be appended in the url.
My question is how can i set this value?
I can get doing this:
String numero = request.getPara meter("d-49653-p");
but in can´t set.
My table is:
<display:tabl e name="<%=Consul tarProcessosCon ferenciaPortlet Bundle.CHAVE_AT RIBUTO_LISTA_DO CUMENTOS%>"
pagesize="10" cellpadding="1" sort="list" defaultsort="1"
defaultorder="a scending"
decorator="ccf. portal.portlets .intranet.confe rencia.resource .FacturaDecorat or">
<display:colu mn property="descr icaoLote" sortProperty="o rdenacaoLote"
title="Lote" sortable="true"
style="width: 20%; align: left;"
headerClass="Ta bleHeader"/>
<display:colu mn property="descr icaoDocumento"
sortProperty="n umeroDocumento"
title="Nº. da Prescrição" sortable="true"
style="width: 10%; align: left;"
headerClass="Ta bleHeader"/>
<display:colu mn property="colum nDocumentosPara Download"
title="Digitali zação(Presc./Prest.)"
style="width: 10%; align: center;"
headerClass="Ta bleHeader"/>
<display:colu mn property="recla mado" title="Reclamad o?"
style="width: 15%; align: center;"
headerClass="Ta bleHeader"/>
<display:colu mn property="colum nNomeFicheiroAF " title="Notifica ção"
style="width: 15%; align: center;"
headerClass="Ta bleHeader"/>
<!--display:column property="colum nNotificacao"
title="Notifica ção"
style="width: 8%; align: center;"
headerClass="Ta bleHeader"/-->
<display:colu mn property="colum nAccoesSobreDoc umento" title=""
sortable="false " style="width: 20%; align: center;"
headerClass="Ta bleHeader"/>
<!--display:column property="colum nSeleccao" title="Reclamar "
style="width: 6%; align: center;"
headerClass="Ta bleHeader"/-->
<display:footer >
<td> </td>
</display:footer>
<!--tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td align="middle">
<script type="text/javascript">
document.write( '<a class="CommandB utton">RECLAMAÇ ÕES</a>');
</script>
<noscript>
<input type="submit" name="<%= ConsultarProces sosConferenciaP ortletBundle.CH AVE_PARAM_ACTIO N_REQUEST_ID %>" value="<%= ConsultarProces sosConferenciaP ortletBundle.CH AVE_PARAM_ACTIO N_RECLAMAR_VARI OS %>"/>
</noscript>
</td>
<td> </td>
</tr-->
<display:setPro perty name="sort.amou nt" value="list"/>
<display:setPro perty name="css.tr.od d" value="colorOdd "/>
<display:setPro perty name="css.tr.ev en" value="colorEve n"/>
<display:setPro perty name="css.th.so rtable" value="TableHea der"/>
<display:setPro perty name="css.table " value="TableLis t"/>
<display:setPro perty name="paging.ba nner.item_name" value="document o"/>
<display:setPro perty name="paging.ba nner.items_name " value="document os"/>
Thanks to everyone