我正在开发一个liferay portlet。这是我在JSP文件中的代码:Implement在liferay portlet中编辑
<table class="DDGridView">
<tr class="td">
<td class="th">Complex Name</td>
<td class="th">City</td>
<td class="th">Status</td>
</tr>
<%
Complex complex;
for(int i = 0 ; i < complexList.size(); i++)
{
complex = (Complex)complexList.get(i);
%>
<tr class="td">
<td><%=complex.complexName %></td>
<td><%=complex.complexCity %></td>
<%
if(complex.isActive == 1)
{
%>
<td class="th">Active</td>
<%
}
else
{
%>
<td>Not Active</td>
<%
}
%>
<td><a href="<%=prepareEditComplexURL%>">Edit</a></td>
<td><a>Delete</a></td>
</tr>
<%
}
%>
</table>
当用户点击编辑URL,我要选择的行项发送到portlet类。但我不知道该怎么做。我怎样才能做到这一点?
你能详细说说你是什么意思的“选定的行项目”。你如何准备'prepareEditComplexURL'或者你想帮助准备这个URL本身? –
通过单击编辑执行转到Portlet类中的方法。在该方法中,我需要知道complexName,complexCity和Edit按钮被单击的行的状态。 – Karadous