如何在有更多 portlet 的页面上刷新 portlet? (liferay-7.2)

我有一个 Portlet“Portlet A”,它显示内容并使用“运行时”调用另一个 Portlet“Portlet B”。所以我在同一页面上有两个 portlet。

“Portlet B”有一个搜索容器。当我单击搜索容器中的下一页或第 2 页时,它会将我返回,我认为是这样,因为它采用了搜索容器 portlet 的 url。

有什么办法可以让它只刷新“Portlet B”(搜索容器Portlet)而不将我发送出去?

Portlet A:

<liferay-util:buffer var="call">
        <liferay-portlet:runtime portletName="com_liferay_document_portlet_DocumentFormPortlet" queryString='<%= "&id=" + String.valueOf(id) %>' />
</liferay-util:buffer>

Portlet B:

<%
...
PortletURL portletURL = renderResponse.createRenderURL();
portletURLViews.setParameter("id",String.valueOf(id));
portletURLViews.setParameter("docsCur",docsCur);
...
%>

<liferay-ui:search-container
    emptyResultsMessage="Nothing"
    id="docs"
    total="<%= docs.size() %>"
    curParam="docsCur"
    iteratorURL="<%= portletURL %>"
>
    <liferay-ui:search-container-results
        results="<%= ... %>"
    />
        
    <liferay-ui:search-container-row
        ...
    >
        ...
    </liferay-ui:search-container-row>
    <liferay-ui:search-iterator/>
</liferay-ui:search-container>

你能帮我吗?非常感谢!

xinguozh 回答:如何在有更多 portlet 的页面上刷新 portlet? (liferay-7.2)

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1102382.html

大家都在问