grails paginate doesn't work
问题 I'm trying to use the paginate tag in grails but it isn't working. in controller: def show(Integer max) { params.max = Math.min(max ?: 10, 100) def etpse def total if (params.data == 'all') { etpse = Enterprise.findAll() total = Enterprise.count() } else { def paramsLike = "%" + params.data + "%" etpse = Enterprise.findAllByKeywordLike(paramsLike) total = Enterprise.countByKeywordLike(paramsLike) } [etpseList: etpse, instanceTotal: total] } in gsp: <div id='pagination'> <g:paginate total="$