<liferay-ui:search-container doesn't display

16 views
Skip to first unread message

handr...@gmail.com

unread,
Jul 31, 2015, 9:01:45 AM7/31/15
to Liferay Savvy
I am using the example in chapter 5 of "The Liferay Cookbook Free for Life.pdf".My JSP is

<%
List<LMSBook> books = null;;
try {
books = LMSBookLocalServiceUtil.getLMSBooks(0, -1);
} catch (SystemException e) {
e.printStackTrace();
}
%>

<h1>This isList of books in our Library</h1>
<h1>With <%= books.size() %> Books</h1>

<liferay-ui:search-container delta="4"
emptyResultsMessage="Sorry. There are no items to display">
<liferay-ui:search-container-results
total="<%= books.size() %>"
results="<%= ListUtil.subList(books, 0, books.size()) %>" />
<liferay-ui:search-container-row className="LMSBook">
<liferay-ui:search-container-column-text name="Book Title"
property="bookTitle"></liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Author"
property="author"></liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Date Added"
property="createDate"></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
</liferay-ui:search-container>

Reply all
Reply to author
Forward
0 new messages