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

Children binding add and reload model

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: Freshly, 8.0.1
    • Fix Version/s: 8.0.1
    • Component/s: Databind 2
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 8.0.1

      Description

      run the attached example using (8.0.1.FL.20151019-Eval):

      clicking one of the following sequences causes an exception:
      clear, add
      add, add

      org.zkoss.zk.ui.UiException: Adding causes a smaller list?
      	at org.zkoss.bind.impl.ChildrenBindingListDataListener.onListModelDataChange(ChildrenBindingListDataListener.java:60)
      	at org.zkoss.bind.impl.ChildrenBindingListDataListener.onChange(ChildrenBindingListDataListener.java:44)
      	at org.zkoss.zul.AbstractListModel.fireEvent(AbstractListModel.java:68)
      	at org.zkoss.zul.ListModelList.add(ListModelList.java:183)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h