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

MVVM form binding update error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: 7.0.4
    • Fix Version/s: None
    • Component/s: Databind 2
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: