ServiceContext serviceContext = null;
String redirect = ParamUtil.getString(renderRequest, "redirect");
RenderURL renderURL = renderResponse.createRenderURL();
renderURL.setParameter("mvcRenderCommandName", "/upload");
renderURL.setParameter("redirect", redirect);
SearchContainer<FileEntry> searchContainer = new SearchContainer(renderRequest, renderURL,
null, "no-results");
searchContainer.setDelta(5);
List<FileEntry> fileEntries = dlAppService.getFileEntries(rootFolder.getRepositoryId(),
rootFolder.getFolderId(), searchContainer.getStart(), searchContainer.getEnd());
searchContainer.setResults(fileEntries);
searchContainer.setTotal(dlAppService.getFileEntriesCount(
rootFolder.getRepositoryId(), rootFolder.getFolderId()));
renderRequest.setAttribute("searchContainer", searchContainer);
<liferay-ui:search-container
searchContainer="${searchContainer}"
deltaConfigurable="false"
var="fileEntrySearchContainer"
>
……
</liferay-ui:search-container>