1 Reply Latest reply: Mar 30, 2012 2:11 PM by DrClap RSS

    Display tabel parameterpage

    927518
      Hello,

      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
        • 1. Re: Display tabel parameterpage
          DrClap
          So do you mean that
          new ParamEncoder(ConsultarProcessosConferenciaPortletBundle.CHAVE_ATRIBUTO_LISTA_ERROS_POR_DOCUMENTO).encodeParameterName(TableTagParameters.PARAMETER_PAGE)))
          is always null?

          If so then you'll have to have a look at the various objects referred to in that code and see what they do. If you think about it for a couple of minutes, you should eventually realize that nobody here (except you) has access to them.