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

MVVM form binding update error

    XMLWordPrintable

Details

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

    Description

      <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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: