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

The selected Objects of the Chosenbox is incorrect after replace model

XMLWordPrintable

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

      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>
      

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

              Created:
              Updated:
              Resolved: