Display tabel parameterpage
927518Mar 30 2012 — edited Mar 30 2012Hello,
I have a table in a jsp and i need to manipulate pagenumber because it returns to first page every time i do actions in my page.
However i can´t acess to request parameters to manipulate its value.
My code in jsp is:
<display:table name="<%=ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_ERROS_POR_DOCUMENTO%>"
pagesize="10" cellpadding="1" sort="list" defaultsort="1"
defaultorder="ascending"
partialList="true" size="resultSize" id="table" requestURI=""
decorator="ccf.portal.portlets.intranet.conferencia.resource.TabelaErrosPorDocumentoDecorator">
My code in java class is:
if (request.getParameter((new ParamEncoder(ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_ERROS_POR_DOCUMENTO).encodeParameterName(TableTagParameters.PARAMETER_PAGE))) != null) {
int i = (Integer.parseInt(request.getParameter((new ParamEncoder(ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_ERROS_POR_DOCUMENTO).encodeParameterName(TableTagParameters.PARAMETER_PAGE)))) - 1) * 10;
}
The problem is that the if is always null, can anyone help me please ?
Thanks