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

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

    XMLWordPrintable

    Details

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

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

                Dates

                Created:
                Updated:
                Resolved: