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

template injection doesn't work with the nested template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.1
    • Fix Version/s: 8.0.2
    • Component/s: None
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.2 S2

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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