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

template injection doesn't work with the nested template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.1
    • None
    • None
    • ZK 8.0.2 S2

      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.

            SEFI SEFI
            wenninghsu 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