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

combobutton doesn't have isOpen() so zkbind can't read open property

XMLWordPrintable

    • None

      zktest/bind/comp/combobutton.zul

      <zk>
      	<vlayout apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.zkoss.zktest.bind.comp.Combobutton')">
      		<combobutton label="combobutton" open="@bind(vm.open)" >
      			<popup>
      				<vbox>
      					<hbox>
      						Search
      						<textbox />
      					</hbox>
      					<listbox width="200px">
      						<listhead>
      							<listheader label="Name" />
      							<listheader label="Description" />
      						</listhead>
      						<listitem>
      							<listcell label="John" />
      							<listcell label="CEO" />
      						</listitem>
      						<listitem>
      							<listcell label="Joe" />
      							<listcell label="Engineer" />
      						</listitem>
      					</listbox>
      				</vbox>
      			</popup>
      		</combobutton>
      		<label id="open" value="@load(vm.open)" />
      	</vlayout>
      </zk>
      
      

      Under the test case above, when clicking comboutton to make it open, it pop-ups the error message :
      Property 'open' not readable on type boolean

            benbai benbai
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: