Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use custom bean class in search container in liferay
    primarykey
    data
    text
    <p>I want to show some records in liferay portlet.<br> I have list of objects which I want to display and for that I am using <code>Searchcontainer</code> tag of liferay i.e. <code>liferay-ui:search-container</code> as follows:</p> <pre class="lang-jsp prettyprint-override"><code>&lt;liferay-ui:search-container delta="5" emptyResultsMessage="No Results Found" iteratorURL="&lt;%= portletURL %&gt;" &gt; &lt;liferay-ui:search-container-results total="&lt;%= contents.size() %&gt;" results="&lt;%= ListUtil.subList(contents,searchContainer.getStart(),searchContainer.getEnd()) %&gt;"&gt; &lt;/liferay-ui:search-container-results&gt; &lt;liferay-ui:search-container-row modelVar="content" keyProperty="title" className="com.liferay.portlet.documentlibrary.model.DLFileEntry"&gt; &lt;liferay-ui:search-container-column-text name='Name' property="name" orderable="&lt;%= true %&gt;"&gt;&lt;/liferay-ui:search-container-column-text&gt; &lt;liferay-ui:search-container-column-text name='Title' property="title" orderable="&lt;%= true %&gt;"&gt;&lt;/liferay-ui:search-container-column-text&gt; &lt;liferay-ui:search-container-column-text name='MimeType' property="mimeType" orderable="&lt;%= true %&gt;"&gt;&lt;/liferay-ui:search-container-column-text&gt; &lt;liferay-ui:search-container-column-text name='CreatedDate' orderableProperty="createDate"&gt;&lt;%=ContentReportUtil.getCreatedDate(content) %&gt;&lt;/liferay-ui:search-container-column-text&gt; &lt;liferay-ui:search-container-column-text name='ModifiedDate' orderableProperty="modifiedDate"&gt;&lt;%=ContentReportUtil.getModifiedDate(content) %&gt;&lt;/liferay-ui:search-container-column-text&gt; &lt;/liferay-ui:search-container-row&gt; &lt;liferay-ui:search-iterator/&gt; &lt;/liferay-ui:search-container&gt; </code></pre> <p>Currently I am mapping myobject properties to <code>DLFileEntry</code> properties and creating List of DLFileentry objects from myobjects list but I know that is not good way please suggest the solution.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload