org.zkoss.zk.ui.EventListener.duplicateIgnored"
From Documentation
(Created page with " {{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.zk.ui.EventListener.duplicateIgnored {{GlobalLibraryProperty}} Default: <i>false</i>: allows one instance of...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
{{GlobalLibraryProperty}} | {{GlobalLibraryProperty}} | ||
− | Default: <i> | + | Default: <i>true</i>: allows one instance of event listener to be added multiple times to the listener list of a component or page. |
− | + | If set to false, components and pages will check their internal listener list for the same instance of listener, and will return false instead of adding it again if found. | |
<pre> | <pre> |
Latest revision as of 04:07, 25 June 2020
Property:
org.zkoss.zk.ui.EventListener.duplicateIgnored
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: true: allows one instance of event listener to be added multiple times to the listener list of a component or page.
If set to false, components and pages will check their internal listener list for the same instance of listener, and will return false instead of adding it again if found.
<library-property> <name>org.zkoss.zk.ui.EventListener.duplicateIgnored</name> <value>true</value> </library-property>