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

Widget not found in Embedded ZK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 9.0.1
    • 9.0.0
    • None

    Description

      Steps to Reproduce

      1. Enable embedded ZK

      <library-property>
          <name>org.zkoss.web.servlet.http.embedded.enabled</name>
          <value>true</value>
      </library-property>
      

      2. Restart server and run attached file.
      html:

      <html lang="en">
      <head>
          <meta charset="UTF-8">
          <title>Title</title>
      </head>
      <body>
      <div id="aaa">
          Enabled Embedded ZK in zk.xml (ZK-4390)
      </div>
      <button id="btn" onClick="zEmbedded.load('aaa', '/zktest/test2/B90-ZK-4507-1.zul');">Click it</button>
      <script src="/zktest/zkau/web/js/zkmax/embedded/embedded.js"></script>
      </body>
      </html>
      

      B90-ZK-4507-1.zul :

      <zk>
      	<div>
              <button label="click me, and you should see 'gogo' in zk log." onClick='Clients.log("gogo")' />
      	</div>
      </zk>
      

      Current Result

      See zul.wgt.Div no found js exception

      Expected Result

      no Exception

      Debug Information


      Workaround


      Attachments

        Activity

          People

            DevChu DevChu
            DevChu DevChu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: