您的位置:首页 > 其它

jmesa - recovery of table status you left it

2009-09-22 15:14 561 查看
1

TableFacade tableFacade = new TableFacadeImpl("_consignmentList",request);

tableFacade.getWebContext().setLocale(locale);

String tableRecoveryMode = StringUtil.trim(request.getParameter("_table_recovery_mode"));

if ("BACK".equals(tableRecoveryMode)) {

request.setAttribute("_consignmentList" + "_limit_fetch", "true");

}

tableFacade.setStateAttr("_consignmentList" + "_limit_fetch");

Limit limit = tableFacade.getLimit()
;//通过上面set 的stateAttr得到之前的limit信息。

if (!limit.isComplete()) {

BigDecimal count = eqCargoExamReportService.eqConsignmentListCount(pagedCriteria);

tableFacade.setTotalRows(count.intValue());

}

pagedCriteria.setPageSort(TableFacadeUtils.getCommonSort(tableFacade.getLimit()));

int rowStart = limit.getRowSelect().getRowStart();

int rowEnd = limit.getRowSelect().getRowEnd();

pagedCriteria.getPageFilter().setRowStart(rowStart);

pagedCriteria.getPageFilter().setRowEnd(rowEnd);

List<EqConsignmentListDTO> targetList = eqCargoExamReportService.eqConsignmentList(pagedCriteria);

tableFacade.setItems(targetList);

2

<input type="button" value="Close"

onClick="goToAction('${ctx}/cec/eqConsignmentList.do?_table_recovery_mode=BACK')">

其实就是构造一个session attribute value,并将其设为"true"。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐