Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created June 17, 2015 18:03
Show Gist options
  • Save chingovan/82539d5093a37bf0e34c to your computer and use it in GitHub Desktop.
Save chingovan/82539d5093a37bf0e34c to your computer and use it in GitHub Desktop.
<%@include file="/html/searchtutorial/init.jsp"%>
<%
PortletURL portletURL = renderResponse.createRenderURL();
StudentSearchContainer studentSearchContainer = new StudentSearchContainer(renderRequest, portletURL);
%>
<liferay-ui:search-container searchContainer="<%= studentSearchContainer %>">
<liferay-ui:search-container-results
results="<%= DemoStudentUtil.search( studentSearchContainer) %>"
total="<%= DemoStudentUtil.count(studentSearchContainer) %>"
/>
<liferay-ui:search-container-row
className="com.blogspot.chingovan.tutorial.model.Student"
modelVar="student"
>
<liferay-ui:search-container-column-text property="code" />
<liferay-ui:search-container-column-text property="fullname" />
<liferay-ui:search-container-column-text name="gender" value='<%= student.isGender() == true ? "Nam" : "Nu" %>' />
<liferay-ui:search-container-column-text property="address" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment