org.zkoss.zk.ui.ScriptErrorListener.class"

From Documentation
Line 9: Line 9:
 
  Default: <i>org.zkoss.zk.ui.script.DefaultScriptErrorListener</i>
 
  Default: <i>org.zkoss.zk.ui.script.DefaultScriptErrorListener</i>
  
 +
The default one will log the error message starting with:
  
It specifies the name of the class as the default script error handler when using Clients.evalJavascript.
+
  Clients.evalJavascript error! message: ... , stack:...
Put empty string as value to disable this.
+
 
 +
 
 +
Specify a fully qualified class name of your custom listener. We suggest you to extend the default one.
 +
 
 +
Put empty string as value to disable the default listener.
 
  <library-property>
 
  <library-property>
 
   <name>org.zkoss.ui.script.ScriptErrorListener.class</name>
 
   <name>org.zkoss.ui.script.ScriptErrorListener.class</name>
 
   <value></value>
 
   <value></value>
 
  </library-property>
 
  </library-property>
 +
  
 
  {{ZKConfigurationReferencePageFooter}}
 
  {{ZKConfigurationReferencePageFooter}}

Revision as of 07:48, 28 July 2021


org.zkoss.zk.ui.ScriptErrorListener.class


Property: org.zkoss.zk.ui.ScriptErrorListener.class

Since 9.6.0

Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png not as <custom-attribute>
Default: org.zkoss.zk.ui.script.DefaultScriptErrorListener

The default one will log the error message starting with:

 Clients.evalJavascript error! message: ... , stack:...


Specify a fully qualified class name of your custom listener. We suggest you to extend the default one.

Put empty string as value to disable the default listener.

<library-property>
  <name>org.zkoss.ui.script.ScriptErrorListener.class</name>
  <value></value>
</library-property>



Last Update : 2021/07/28

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.