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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 6.0.2
    • Affects Version/s: None
    • Component/s: Databind 2
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: