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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: Databind
    • Security Level: Jimmy
    • Labels:
      None

      Description

      <?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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: