Package com.common.web.support.pagination

Examples of com.common.web.support.pagination.Pagination


        limit = Integer.valueOf(limitParam);
      } catch (Exception e) {
        isPagination = false;
      }
      if (isPagination) {
        Pagination p = null;
        try {
          JSONObject sort = JSONArray.fromObject(request
              .getParameter("sort")).getJSONObject(0);
          if (sort != null) {
            p = new Pagination(start, limit,
                sort.getString("property"),
                sort.getString("direction"));
          } else {
            p = new Pagination(start, limit);
          }
        } catch (Exception e) {
          p = new Pagination(start, limit);
        }
        PaginationUtils.setPagination(p);
      }
    }
    return true;
View Full Code Here

TOP

Related Classes of com.common.web.support.pagination.Pagination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.