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...") |
|||
Line 7: | Line 7: | ||
Default: <i>false</i>: allows one instance of event listener to be added multiple times to the listener list of a component or page. | Default: <i>false</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> |
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: false: 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>