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

When deleted one selected item in chosenbox with ListSubModel, it would remove all the selection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.5, 7.0.1
    • 6.5.4
    • Components
    • None

      1. Select row1, row2, row3.
      2. Use backspace to delete row3.
      3. All the label will be removed.

      test.zul
      <zk>
      <zscript><![CDATA[
      import java.util.ArrayList;
      import org.zkoss.zul.*;
      ArrayList list = new ArrayList();
      for (int i = 0; i < 10; i++) {
      	list.add("row " + i);
      }
      ListSubModel model = ListModels.toListSubModel(new ListModelList(list));
      ]]></zscript>
      <chosenbox width="300px" model="${model}"/>
      </zk>
      

            RaymondChao RaymondChao
            RaymondChao RaymondChao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: