Uploaded image for project: 'ZK Studio'
  1. ZK Studio
  2. ZKSTUDIO-38

ZUL Visual Editor fails to render included zul when project created via Maven archetype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: ZUL Editor
    • Environment:
      • Windows 7
      • Eclipse Juno
        • Zk Studio Plugin 1.0.2
      • Apache Tomcat 7.0.33
      • Apache Maven 3.0.4
      • jdk1.7.0_09

      Description

      In Eclipse:

      File > New > Other > Maven > Maven Project

      Click Next

      [*] Use Default workspace location

      Click Next

      Catalog: ZK Maven Catalog (previously configured) - http://mavensync.zkoss.org/maven2/
      Filter:

      Highlight:

      Group Id: org.zkoss
      Artifact Id: zk-archetype-webapp
      Version: 6.0

      Click Next

      Enter project details:

      Group Id: com.foo
      Artifact Id: bar
      Version: 0.0.1-SNAPSHOT
      Package: com.foo.bar

      Click Finish

      In src/main/webapp appears index.zul

      Create a 2nd zul file called:

      header.zul

      In

      header.zul

      from the ZUL palette copy a menubar so the file looks like:

      <?page title="header" contentType="text/html;charset=UTF-8"?>
      <zk>
      <window title="header" border="normal">
      <menubar>
          <menu label="File">
              <menupopup>
                  <menuitem label="New" />
                  <menuseparator />
                  <menuitem label="Open" />
              </menupopup>
          </menu>
          <menuitem label="About" />
      </menubar>
      </window>
      </zk>
      

      Open index.zul and add an <include> statement so the file appears as:

      <?page title="Auto Generated index.zul"?>
      <window title="Hello World!!" border="normal" width="200px">
      <include src="header.zul"/>
      <label value="You are using: ${desktop.webApp.version}"/>
      </window>
      

      Result: ZUL Visual Editor displays the error - Fail to render: Page not found: /header.zul

      Expected Result: Included file displayed in ZUL Visual Editor

      NOTE: Creating a project using:

      File > New > Project > ZK Project (i.e. non maven project)

      renders included pages correctly in the ZUL Visual Editor.

        Attachments

          Activity

            People

            Assignee:
            dennis dennis
            Reporter:
            zettai zettai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: