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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Components, Databind 2
    • Labels:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: