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

whitespace issue with shadow element and native element

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.0
    • Fix Version/s: 8.0.0
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None
    • Environment:

      tested in eclipse with maven / jetty, with 8.0.0.FL.20150811-Eval

    • gh.sprint.customfield.default.name:
      ZK 8.0.1

      Description

      [example attached]
      when using a shadow element inside a native element, whitespaces in the zul file cause the following exception to be thrown :
      HTTP ERROR 500

      Problem accessing /ShadowENativeBug/. Reason:

      Only accept template and shadow element to be a child of [shadow element(customComp)]
      Caused by:

      java.lang.IllegalStateException: Only accept template and shadow element to be a child of [shadow element(customComp)]
      at org.zkoss.zk.ui.metainfo.ShadowInfo.appendChild(ShadowInfo.java:198)

        Attachments

        1. customComp.zul
          0.1 kB
        2. index.zul
          0.7 kB

          Activity

            People

            Assignee:
            christopherszu christopherszu
            Reporter:
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h