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

ForEach cause NoSuchElementException when using ListModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.4
    • 8.0.3
    • None
    • None
    • None

      Steps to Reproduce

      run the following code (need a viewmodel)

      // a listmodel of size 5
      <forEach items="@load(vm.model_l)" step="2">
        <label value="@load(each.id)"/>
        <label value="@load(each.name)"/>
        <separator />
      </forEach>
      

      Actual Result

      NoSuchElementException occur

      Expected Result

      no exception

            DevChu DevChu
            DevChu DevChu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h