template injection doesn't work with the nested template

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 8.0.2
    • Affects Version/s: 8.0.1
    • Component/s: None
    • None
    • ZK 8.0.2 S2
    • None

      background

      using nested template to simplify zul when similar patterns are in two different templates, however template injection doesn't work with the nested template.

      example

      <zk>
          <vlayout>
              <template name="b1">
                  <grid>
                      <rows>
                          <row>
                              <apply template="b2"/>
                          </row>
                      </rows>
                  </grid>
              </template>
              <apply template="b0"/>
              <template name="b0">
                  <apply template="b1">
                      <template name="b2">
                          <label value="Test"/>
                      </template>
                  </apply>
              </template>
          </vlayout>
      </zk>
      

      result

      can't get template "b0", so there's no label inside the grid row.

      expected

      expected to inject template "b2" to get the label "Test" inside the grid row.

            Assignee:
            SEFI
            Reporter:
            wenninghsu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d