How to use custom bean class in search container in liferay -


i want show records in liferay portlet.
have list of objects want display , using searchcontainer tag of liferay i.e. liferay-ui:search-container follows:

<liferay-ui:search-container delta="5" emptyresultsmessage="no results found" iteratorurl="<%= portleturl %>" >    <liferay-ui:search-container-results total="<%= contents.size() %>" results="<%= listutil.sublist(contents,searchcontainer.getstart(),searchcontainer.getend()) %>">     </liferay-ui:search-container-results>     <liferay-ui:search-container-row modelvar="content"  keyproperty="title" classname="com.liferay.portlet.documentlibrary.model.dlfileentry">         <liferay-ui:search-container-column-text name='name' property="name" orderable="<%= true %>"></liferay-ui:search-container-column-text>         <liferay-ui:search-container-column-text name='title'   property="title" orderable="<%= true %>"></liferay-ui:search-container-column-text>         <liferay-ui:search-container-column-text name='mimetype'   property="mimetype" orderable="<%= true %>"></liferay-ui:search-container-column-text>         <liferay-ui:search-container-column-text name='createddate'  orderableproperty="createdate"><%=contentreportutil.getcreateddate(content) %></liferay-ui:search-container-column-text>         <liferay-ui:search-container-column-text name='modifieddate'  orderableproperty="modifieddate"><%=contentreportutil.getmodifieddate(content) %></liferay-ui:search-container-column-text>     </liferay-ui:search-container-row>    <liferay-ui:search-iterator/> </liferay-ui:search-container> 

currently mapping myobject properties dlfileentry properties , creating list of dlfileentry objects myobjects list know not way please suggest solution.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -