Example #1
0
  protected void searchPaging(final RenderData data, final FailureUrlSearchForm form) {
    data.register(
        "failureUrlItems", failureUrlService.getFailureUrlList(failureUrlPager)); // page navi

    // restore from pager
    copyBeanToBean(
        failureUrlPager, form.searchParams, op -> op.exclude(Constants.PAGER_CONVERSION_RULE));
  }
 /**
  * Register the paging navigation as page-range.
  *
  * @param data The data object to render the HTML. (NotNull)
  * @param page The selected page as bean of paging result. (NotNull)
  * @param form The form for query string added to link. (NotNull)
  */
 protected void registerPagingNavi(
     RenderData data,
     PagingResultBean<? extends Entity> page,
     Object form) { // application may call
   data.register("pagingNavi", createPagingNavi(page, form));
 }