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

The timing of @Init on viewmodel is not so correct.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 6.0.2
    • None
    • Databind 2
    • None

    Description

      in this case:
      <div apply="org.zkoss.bind.BindComposer"
      viewModel="@id('vm') @init('a.b.AVm')">
      <div apply="org.zkoss.bind.BindComposer"
      viewModel="@id('vm2') @init(vm.vm2)">

      the inner vm2 declaration won't work because when EL tried to retrieve 'vm2' from 'vm', vm was not initialized yet.

      need to find a better solution for binderComposer vm init.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iantsai iantsai
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: