Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1908

Databinding Load order causing problems on Paging component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.5.4
    • 6.5.3
    • Databind 2
    • Security Level: Jimmy

      <paging pageSize="@load(vm.pageSize)" totalSize="@load(vm.totalSize)" activePage="@bind(vm.activePage)" />
      will cause an error when active page is greater than 0 because its load binding is executed before the load binding to totalSize... so the initialization order is wrong on the paging component.

      Paging.setActivePage() will be called first resulting in an exception like (WrongValueException("Unable to set active page to 2 since only 1 pages")) as the number of pages is calculated from the pageSize and the totalSize which are not yet initialized.

            Jenkins Jenkins
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: