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

Cannot turn on the multiple selection of the listbox when use databinding 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1
    • 6.0.0
    • Databind
    • Security Level: Jimmy
    • None

      <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
      <zk>
      	<window >
      	
      	<zscript><![CDATA[
      		List list = new ArrayList();
      		
      		for (int i = 0; i < 10; i++) {
      			list.add("item " + i);
      		}
      		
      		ListModelList model = new ListModelList(list);
      		model.setMultiple(true);
      	]]></zscript>
      	<listbox width="150px"  model="@{model}" checkmark="true">
      		<listhead>
      			<listheader label="col"/>
      		</listhead>
      		<listitem self="@{each=item}" label="@{item}"/>
      	</listbox>
      
      	</window>
      </zk>
      

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

              Created:
              Updated:
              Resolved: