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

The selected Objects of the Chosenbox is incorrect after replace model

    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

      http://screencast.com/t/DqMnIAijhfjT

      <zk>
      	<zscript><![CDATA[
              int i = 0;
              List list = Arrays.asList(new String[]{"AA", "BB", "CC", "DD", "EE"});
              ListModelList model = new ListModelList(list);
          ]]></zscript>
          <chosenbox id="box" width="200px" model="${model}" ></chosenbox>
      
          
          <button label="model replace">
          	<attribute name="onClick"><![CDATA[
      			List list = Arrays.asList(new String[]{"AA", "BB", "CC", "DD", "EE", "New" + i});
      			i ++;
      			box.setModel(new ListModelList(list));
          	]]></attribute>
          </button>
      </zk>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: