org.zkoss.zk.ui.ScriptErrorListener.class"
From Documentation
(Created page with " {{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.zk.ui.ScriptErrorListener.class {{GlobalLibraryProperty}} Default: <i>org.zkoss.zk.ui.script.DefaultScript...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
'''Property:''' | '''Property:''' | ||
org.zkoss.zk.ui.ScriptErrorListener.class | org.zkoss.zk.ui.ScriptErrorListener.class | ||
+ | |||
+ | {{versionSince| 9.6.0}} | ||
{{GlobalLibraryProperty}} | {{GlobalLibraryProperty}} | ||
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: | |
− | Put empty string as value to disable | + | |
+ | 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. | ||
+ | <syntaxhighlight lang='xml'> | ||
<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> | ||
+ | </syntaxhighlight> | ||
{{ZKConfigurationReferencePageFooter}} | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 09:36, 28 July 2021
Property:
org.zkoss.zk.ui.ScriptErrorListener.class
Since 9.6.0
Applicable: globally in zk.xml via <library-property> 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>