Created
March 11, 2016 18:29
-
-
Save chingovan/ae38fc1e4a2f0b1a0eeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.util.WebKeys"%> | |
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%> | |
<%@include file="/html/actions/init.jsp"%> | |
<% | |
StudentSearchContainer searchContainer = (StudentSearchContainer)request.getAttribute("liferay-ui:search:searchContainer"); | |
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); | |
Student student = (Student)row.getObject(); | |
%> | |
<liferay-ui:icon-menu> | |
<portlet:renderURL var="viewDetailURL"> | |
<portlet:param name="studentId" value="<%= String.valueOf(student.getStudentId()) %>" /> | |
<portlet:param name="mvcPath" value="/html/actions/detail.jsp" /> | |
</portlet:renderURL> | |
<liferay-ui:icon message="actions-detail" iconCssClass="icon-info" url="<%= viewDetailURL %>" /> | |
<portlet:renderURL var="editURL"> | |
<portlet:param name="studentId" value="<%= String.valueOf(student.getStudentId()) %>" /> | |
<portlet:param name="mvcPath" value="/html/actions/edit.jsp" /> | |
</portlet:renderURL> | |
<liferay-ui:icon message="actions-edit" iconCssClass="icon-edit" url="<%= editURL %>" /> | |
<portlet:actionURL var="deleteURL" name="deleteStudent"> | |
<portlet:param name="studentId" value="<%= String.valueOf(student.getStudentId()) %>" /> | |
</portlet:actionURL> | |
<liferay-ui:icon message="actions-delete" iconCssClass="icon-remove" url="<%= deleteURL %>" /> | |
</liferay-ui:icon-menu> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment