Пример #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));
  }
Пример #2
0
  protected void searchPaging(final RenderData data, final SearchForm form) {
    RenderDataUtil.register(
        data, "failureUrlItems", failureUrlService.getFailureUrlList(failureUrlPager)); // page navi

    // restore from pager
    copyBeanToBean(
        failureUrlPager,
        form,
        op -> op.include("url", "errorCountMin", "errorCountMax", "errorName"));
  }
Пример #3
0
 private HtmlResponse asListHtml() {
   return asHtml(path_AdminFailureurl_AdminFailureurlJsp)
       .renderWith(
           data -> {
             RenderDataUtil.register(
                 data,
                 "failureUrlItems",
                 failureUrlService.getFailureUrlList(failureUrlPager)); // page navi
           })
       .useForm(
           SearchForm.class,
           setup -> {
             setup.setup(
                 form -> {
                   copyBeanToBean(
                       failureUrlPager,
                       form,
                       op -> op.include("url", "errorCountMin", "errorCountMax", "errorName"));
                 });
           });
 }