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"。
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"。
相关文章推荐
- 144.You execute the following command to change the status of the SALES tablespace: SQL> ALTER TABLE
- You execute the following command to change the status of the SALES tablespace: SQL> ALTER TABLESPAC
- The Constructor Date(String) is Deprecated since of JDK 1.1 you should not use it
- You're given a string of lower-case Latin letters. Your task is to find the length of its longest su
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
- 全网最详细使用Scrapy时遇到0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'opentype''. Please install it from ..的问题解决(图文详解)
- NSLock(Mac OS X (Cocoa) ) — Simple Explanation of What It Is and Why You Need It
- 053-23 How can you reverse the effects of an ALTER DISKGROUP … DROP DISK command if it has not yet c
- Write Code As If You Had to Support It for the Rest of Your Life
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- This view is not constrained vertically: at runtime it will jump to the left unless you add a vertic
- Write Code as If You Had to Support It for the Rest of Your Life
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”
- 22.You need to create a table for a banking application. One of the columns in the table has the fol
- 在Design界面直接拖放控件的时候,提示AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you
- 3.You need to extract details of those products in the SALES table where the PROD_ID column contains
- nagios报错 It appears as though you do not have permission to view information for any of the hosts yo
- Ubuntu - No space left on device Is it a lie or have I run out of inodes
- The object of type 'RectTransform' has been destroyed but you are still trying to access it
- If you modify the UNID of an existing document, it becomes a new document.