Foros de discusión

How to maintain the search value while moving to the next page in a paginat

thumbnail
Waseem Zawaideh, modificado hace 13 años.

How to maintain the search value while moving to the next page in a paginat

New Member Mensajes: 14 Fecha de incorporación: 24/05/10 Mensajes recientes
Hi all, I am using liferay 6.0.4. I had created a new Portlet using the plugins to search for all the flv files in the document library and return the results. I extended the MVCPortlet and override the processAction and render methods, while in the view.jsp I used "<liferay:search-container .. >" to display the results. Everything works fine but I could not maintain the search field value after navigating to the next or prev pages. the results are correct but I wanted to maintain the searchfield value.
I tried the renderRequest.getParameter("") method but it returns null I also tried to add a new Attribute in the renderRequest and get it in the page but that also didn't work, Is a keeping the value in the session my only refuge ?!
Pete van de Water, modificado hace 13 años.

RE: How to maintain the search value while moving to the next page in a pag

New Member Mensajes: 12 Fecha de incorporación: 18/08/10 Mensajes recientes
I'm using Spring and I just pass the field between pages with portlet:param and pick it up with @RequestParam