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

Databinding Load order causing problems on Paging component

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.3
    • Fix Version/s: 6.5.4
    • Component/s: Databind 2
    • Security Level: Jimmy

      Description

      <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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: