Spring MVC Portlet中的Liferay搜索容器

Spring MVC Portlet中的Liferay搜索容器,liferay,spring-portlet-mvc,Liferay,Spring Portlet Mvc,可以在spring Portlet中使用Liferay搜索容器吗?当我尝试时,页面中没有呈现任何内容。我已附上密码。我只是在会话中添加数据,并尝试在搜索容器中显示 <% final PortletSession sessData = renderRequest.getPortletSession(); List<Detail> details = (List<Detail>) sessData.getAttribute("DETAILS",Por

可以在spring Portlet中使用Liferay搜索容器吗?当我尝试时,页面中没有呈现任何内容。我已附上密码。我只是在会话中添加数据,并尝试在搜索容器中显示

<%
     final PortletSession sessData = renderRequest.getPortletSession();
     List<Detail> details = (List<Detail>) sessData.getAttribute("DETAILS",PortletSession.PORTLET_SCOPE);
%>


<liferay-ui:search-container delta="3" emptyResultsMessage="No Details found" headerNames="User ID, First Name, Last Name, Address">
<%
    int numOfRecords = details.size();                                  
%>

    <liferay-ui:search-container-results results="<%= details %>" total="${numOfRecords}">

    </liferay-ui:search-container-results>

    <liferay-ui:search-container-row className="Detail" modelVar="detailData">
        <liferay-ui:search-container-column-text name="User ID" property="userId" />
        <liferay-ui:search-container-column-text name="First Name" property="firstName" />
        <liferay-ui:search-container-column-text name="Last Name" property="lastName" />
        <liferay-ui:search-container-column-text name="Address" property="address" />
    </liferay-ui:search-container-row>
</liferay-ui:search-container>

我没有添加搜索迭代器

<liferay-ui:search-iterator searchContainer="<%=searchContainer%>"
           paginate="<%=isNeeded%>" />


到目前为止,您尝试了什么?分享代码。这个问题的答案是:“是”\o/(尽管我认为它会被调节/删除,因为太短了):a)您是否在JSP中包含taglib描述,在WEB-INF/lib中包含taglib?b) 生成的HTML是什么样的?它包含原始标签吗?没有什么?注意:我指的是HTML原始代码,而不是浏览器显示的代码。