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

listbox invalidate partial missing to updating listheader

    XMLWordPrintable

Details

    Description

      Steps to Reproduce

      <zk>
          <zscript><![CDATA[
              ListModelList model = new ListModelList();
              int size = model.size();
              public void addModelItem() {
                  size++;
                  model.add("item-" + size);
                  lh.setLabel("" + size);
                  lb.setValue("" + size);
              }
          ]]></zscript>
          <div>
              <button label="Add Entry" onClick="addModelItem()"/>
              <label id="lb" value="${size}"/>
              <listbox model="${model}" width="200px">
                  <listhead>
                      <listheader id="lh" label="${size}"/>
                  </listhead>
              </listbox>
          </div>
      </zk>
      

      Click the "Add Entry" button

      Current Result

      after the first click -> the listheader label doesn't update

      for the second and subsequent clicks this works

      Expected Result

      labels get updated

      Debug Information

      the list model is initially empty
      if it contains at least 1 initial element, the listheader label will update correctly

      Workaround

      Attachments

        Issue Links

          Activity

            People

              rudyhuang rudyhuang
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: