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

MVVM form binding update error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 7.0.4
    • Databind 2
    • None

      <vlayout>
      	<div>
      		fx.item: <label id="lb1" value="@load(fx.item)"/>
      	</div>
      	<div>
      		fx.item.name: <label id="lb2" value="@load(fx.item.name)"/>
      	</div>
      </vlayout>
      <combobox id="combobox" model="@load(vm.list)" selectedItem="@bind(fx.item)">
      	<template name="model" var="item">
      		<comboitem label="@load(item.name)"/>
      	</template>
      </combobox>
      

      when select arbitrary item from combobox, fx.item.name should change as selected.
      Take a look at bin/issue/B01848FormBindingUpdate.zul for more detail

            Unassigned Unassigned
            ChunfuChang ChunfuChang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: