论坛首页 Web前端技术论坛

关于ligerui的grid分页问题

浏览 6258 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2013-12-20  
我的环境是ligerUI 1.1.9,后端用springMvc,前端用ligerUI。在使用grid的分页跳转到下一页时自定义的页面编号无法传送到后台,currentPage就是我自定义的页面编号,页面代码如下
grid = $("#maingrid").ligerGrid({
                  height:'80%',
                  width:"100%",
                  columns: [
                  { display: '项目名称', name: 'projectName', align: 'left', width: 100, minWidth: 60 },
                  { display: '街镇名称', name: 'projectStreet', minWidth: 120 }
                 
                  ],
                  url:"${pageContext.request.contextPath}/houseStore/page",  
                  
                  root:"content",
                  record:"totalItems",
                  pagesizeParmName:"pageSize",
                  pageParmName:" currentPage",
                  pageSize:20,
                  method:"post",
                  dataAction:"server",
				  rownumbers:true,checkbox: true,
                  toolbar: { items: [
                  { text: '增加', click: addObj, icon: '' },
                  { line: true },
                  { text: '修改', click: updateObj, icon: '' },
                  { line: true },
                  { text: '删除', click: deleteObj, icon: '' }
                  ]
                  }
              });
,后台代码如下
public ResponseEntity<PageResult2<HouseStore>> page(@RequestParam(value="currentPage",required=false) Integer currentPage,@RequestParam(value="pageSize",required=false) Integer pageSize){
		
	}
,后台可以获取到pageSize,但是一直无法获取到currentPage。有谁知道怎么回事?
   发表时间:2013-12-20  
另外我在chrome的调试中看到好像有currentPage传回后台,为什么后台会获取不到,截图如下
  • 大小: 15.9 KB
0 请登录后投票
   发表时间:2013-12-23  
pageParmName:" currentPage", 
看来你的眼力还不够啊, 没看出来多个空格???
1 请登录后投票
   发表时间:2013-12-23  
yy629 写道
pageParmName:" currentPage", 
看来你的眼力还不够啊, 没看出来多个空格???

简直瞎了我的狗眼啊!谢了啊,兄弟
0 请登录后投票
   发表时间:2013-12-24  
kent4java 写道
yy629 写道
pageParmName:" currentPage", 
看来你的眼力还不够啊, 没看出来多个空格???

简直瞎了我的狗眼啊!谢了啊,兄弟

+1
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics