Hi. This is my environment. 1) Display Tag 1.2 2) JSTL 1.0.6 3) Spring 2.5.6 (and SpringMVC portlet) 4) For now Liferay 5.2.3; in future Oracle Portal 10.1.4.0
Now i'm in this situation; i have a form where users cna search dor cities; the search result can be very great (arount 1000000 of records) so i'm using display tag to paginate this result. All works pretty good. I have only a problem; let's suppose i'm in page 3 and i have 20 records; now let's suppose i select by a checkbox one or more cities and i want to delete the choosen cities; i click on a button and i delete the cities; now i'ld love to show the page 3 of pagination. When i do the submit i have this URL: http://localhost:8080/web/guest/home?p_p_id=gestionetabelle_WAR_ConsigliSegn alazioniPortlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=co lumn-2&p_p_col_count=1&_gestionetabelle_WAR_ConsigliSegnalazioniPortlet_acti on=gestcomune&_gestionetabelle_WAR_ConsigliSegnalazioniPortlet_d-444257-p=3& _gestionetabelle_WAR_ConsigliSegnalazioniPortlet__page=0&_gestionetabelle_WA R_ConsigliSegnalazioniPortlet_form-submit=true&_gestionetabelle_WAR_Consigli SegnalazioniPortlet__target1=Cerca As you can see i have the current page request parameter (d-444257-p=3) Now when i delete the choosen records i repeate the pagination; in my pagination code i have this instructions: String numeroPaginaCorrente = ( new ParamEncoder(paramEncoderName) ).encodeParameterName(TableTagParameters.PARAMETER_PAGE); int inizio = 0; if( StringUtils.hasText(request.getParameter(numeroPaginaCorrente)) ){ inizio = Integer.parseInt(request.getParameter(numeroPaginaCorrente)); } if( inizio == 0 || inizio == 1 ){ inizio = 0; }else{ inizio = (inizio-1)*getRecordForPage(); } int recordForPage = getRecordForPage(); Well the request.getParameter gives to me null Can anybody help me? Thnks Regards, Angelo. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user