This discussion is archived
1 Reply Latest reply: Mar 30, 2012 12:11 PM by DrClap RSS

Display tabel parameterpage

927518 Newbie
Currently Being Moderated

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"
partialList="true" size="resultSize" id="table" requestURI=""

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 ?

  • 1. Re: Display tabel parameterpage
    DrClap Expert
    Currently Being Moderated
    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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points