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

Components with Model only renders one item with wrong result if the EL contains forEachStatus.index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 10.0.0
    • 9.6.4
    • None
    • Security Level: Jimmy

      if ListModel only added or removed one data to render, this may cause another issue that if the EL contains with ${forEachStatus.index}, the existed components may re-render as well. Otherwise, the result on UI are wrong.

      For example - https://zkfiddle.org/sample/2s356im/2-Test-ForEachStatus

       

      The testing result:

      Component Re-render All Wrong result
      Listbox with ROD without ROD
      Grid with ROD without ROD
      Tree V V
      Radiogroup V  
      Combobox V V
      Tabbox   V
      Selectbox    
      Searchbox V V
      Stepbar   V
      Organigram   V
      Linelayout V  
      Chosenbox V V
      Cascader V  
      Biglistbox V  

       

      Note:  JSF's index will change too, no matter adding or deleting.

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

              Created:
              Updated:
              Resolved: