include.src binding cause viewmodel loaded again

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Normal
    • None
    • Affects Version/s: 6.5.4
    • Component/s: Databind 2
    • None
    • None

      <window
      apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.TheModel')" >
      <include src="@load(vm.url)" />
      </window>

      class TheModel {

      def url = 'somepage.zul'

      @Init
      void init()

      { println this // print twice every page load }

      }

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

              Created:
              Updated:
              Resolved: