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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.4
    • Fix Version/s: 6.5.5, 7.0.1
    • Component/s: Components
    • Labels:
      None

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: