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