我在Liferay 5.2.3的表格中使用display tag进行分页。我的代码段是:
<logic:notEmpty name="ReportList">
<div class="TabbedPanelsContent">
<div id="LoanPosition_Tabel">
<display:table name="sessionScope.ReportList" requestURI="${urlRepDetails}" pagesize='<%= pagesize %>' sort="list" class="displaytag" defaultsort="3" defaultorder="ascending" >
<display:column href="${urlReverseStatusRepDetails}"paramId="fileNumber" paramProperty="fileNumber" property="fileNumber" title= '<%= messages.getMessage("sr.fileNumber") %>' sortable="true" headerClass="sortable" class="tabel-border" />
<display:column property="uploadFileName" title='<%= messages.getMessage("sr.uploadFileName") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="product" title='<%= messages.getMessage("sr.product") %>'sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="uploadDate" title='<%= messages.getMessage("sr.uploadDate") %>' sortable="true" headerClass="sortable" class="tabel-border-rt" style="text-align:right"/>
<display:column property="uploadTime" title='<%= messages.getMessage("sr.uploadTime") %>'sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="totalInvoiceAmount" title='<%= messages.getMessage("sr.totalInvoiceAmount") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="totalNumbarOfInvoice" title='<%= messages.getMessage("sr.totalNumbarOfInvoice") %>' sortable="true" headerClass="sortable" class="tabel-border-rt" style="text-align:right"/>
<display:column property="totalSuccessfulCases" title='<%= messages.getMessage("sr.totalSuccessfulCases") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="amountDisbursed" title='<%= messages.getMessage("sr.amountDisbursed") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="fileDescription" title='<%= messages.getMessage("sr.fileDescription") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="manufacrCompCode" title='<%= messages.getMessage("sr.manufacrCompCode") %>' sortable="true" headerClass="sortable" class="tabel-border"/>
<display:column property="status" title='<%= messages.getMessage("sr.status") %>'sortable="true" headerClass="sortable" class="tabel-border"/>
<display:setProperty name="paging.banner.placement" value="bottom" />
<display:setProperty name="basic.empty.showtable" value="true" />
<display:setProperty name="paging.banner.onepage" value='' />
<display:setProperty name="paging.banner.no_items_found" value='' />
<display:setProperty name="paging.banner.one_item_found" value='' />
<display:setProperty name="paging.banner.all_items_found" value='' />
<display:setProperty name="paging.banner.some_items_found" value='' />
</display:table>
</div>
</div>
</logic:notEmpty>
问题是当我点击我正在下载文件的文件编号但是当我移动到下一页,即第2页和后续页面时,我上次再次下载的文件只需点击分页即可下载。 这里发生的是最后点击的请求编号增益从点击页面2或3的表单中发布。我无法区分请求编号和分页链接的点击。怎么解决这个? 我是Liferay 5.2.3中的struts框架。
答案 0 :(得分:0)
当你点击分页链接时,它会调用同一个jsp中预设的每个javascript函数或者包含在同一个jsp中的javascript。