WebSphere 6.1 下面 eXtremeComponents的问题,高手大侠乱入。
agura 2006-12-15 10:04:11 原来 Tomcat 5.5 下面跑得很好的eXtremeComponents的标签,到了WebSphere 6.1里就报错,请教如何解决。
Action代码:
public ActionForward load(ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res) throws Exception {
// 初始化服务器端分页
Limit limit = ControllerUtils.getLimit(req);
int pageSize = CommonConstance.MAX_PAGESIZE;
// 根据过滤条件重构一个新的查询标准用来获取分页数据
userInfomgr.filterDetachedCriteriaExt(limit.getFilterSet());
// 指定总总记录数,每页多少条记录
int totalRows = userInfomgr.getUsersCount();
// 指定每页显示行数和总记录数
limit.setRowAttributes(totalRows, pageSize);
req.setAttribute("totalRows", totalRows);
req.setAttribute("users", userInfomgr.getUsersByPagination(pageSize,
limit.getPage()));
return mapping.findForward(CommonConstance.FORWORD_SUCCESS);
}
JSP:
<ec:table items="users" var="user" retrieveRowsCallback="limit" filterRowsCallback="limit" sortRowsCallback="limit" title="用户信息列表" width="100%" imagePath="${pageContext.request.contextPath}/jsp/images/table/*.gif"
action="${pageContext.request.contextPath}/userInfo.do?method=load" rowsDisplayed="<%= String.valueOf(((List)request.getAttribute("users")).size())%>" view="compact" sortable="false" filterable="true" showTitle="false">
<ec:row highlightRow="false"> <ec:column property="stUserName" title="用户姓名" style="white-space: nowrap;border-left-style: none;" width="10%" filterCell="hiddenfilter" />
</ec:row>
</ec:table>