掲示板
Liferay7 JSP tag liferay-ui:search-container-results
7年前 に Heiner Kücker によって更新されました。
Liferay7 JSP tag liferay-ui:search-container-results
New Member 投稿: 10 参加年月日: 16/09/05 最新の投稿
All examples i found for the liferay-ui:search-container-results tag contain tag attributes
results
and
total.
In Liferay7 tag lib descriptor file
liferay-ui.tld
the tag attribute total is gone for tag liferay-ui:search-container-results.
In Liferay 7 sources i found the attribute total in tag liferay-ui:search-container, but my jsp shows no results (data is there, i checked this).
How works paginated browsing in liferay 7 ?
Can anyone post an example ?
Need help
Heiner
results
and
total.
In Liferay7 tag lib descriptor file
liferay-ui.tld
the tag attribute total is gone for tag liferay-ui:search-container-results.
In Liferay 7 sources i found the attribute total in tag liferay-ui:search-container, but my jsp shows no results (data is there, i checked this).
How works paginated browsing in liferay 7 ?
Can anyone post an example ?
Need help
Heiner
7年前 に Heiner Kücker によって更新されました。
RE: Liferay7 JSP tag liferay-ui:search-container-results (回答)
New Member 投稿: 10 参加年月日: 16/09/05 最新の投稿
Follows seems working
<%
searchContainer.setResults(XyzLocalServiceUtil.getXyz(searchContainer.getStart(),searchContainer.getEnd());
searchContainer.setTotal(XyzLocalServiceUtil.getXyz(-1, -1).size() );
%>
For -1 better use
com.liferay.portal.kernel.dao.orm.QueryUtil.ALL_POS
Cheers
Heiner
<%
searchContainer.setResults(XyzLocalServiceUtil.getXyz(searchContainer.getStart(),searchContainer.getEnd());
searchContainer.setTotal(XyzLocalServiceUtil.getXyz(-1, -1).size() );
%>
For -1 better use
com.liferay.portal.kernel.dao.orm.QueryUtil.ALL_POS
Cheers
Heiner
7年前 に David H Nebinger によって更新されました。
RE: Liferay7 JSP tag liferay-ui:search-container-results
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Yeah, Heiner, the totals attribute was removed from the search-container-result tag. Liferay is now following the convention of having a simpler nav model that shows a "More..." button to get more but no active track on just how many more there might be. This saves one query per page view so you could see this as a performance improvement...