Liferay 搜索容器分页问题:单击下一步或第 2 页时,它将重定向到默认渲染方法

Liferay Search Container pagination issue: When click on next or page no 2 it will redirect to default render method

Liferay 搜索容器分页问题:当我们点击下一页或第 2 页时,它将重定向到默认渲染方法并调用默认 jsp。

我还搜索了 Liferay 社区论坛,他们建议使用 iteratorURL 或

<% PortletURL urlPaginator=renderResponse.createActionURL();
urlPaginator.setParameter("param1", value1);
urlPaginator.setParameter("param2",value2); %>

<liferay-ui:search-container iteratorURL="<%=urlPaginator%>">

我不清楚如何使用和实施它。

在您的迭代 url 中,添加 jspPage 参数并为其赋予 jsp 页面值(显然与搜索容器存在的页面相同)