The ItemListener interface is used to declare interest in events concerning selection changes.
For example,
BPCListHandler
allows you to register the Item Change Listener through the
itemListener
property:
<managed-bean>
<managed-bean-name>TaskInstanceList</managed-bean-name>
<managed-bean-class>com.ibm.bpe.jsf.handler.BPCListHandler</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>type</property-name>
<value>com.ibm.bpe.client.model.TaskInstanceBean</value>
</managed-property>
<managed-property>
<property-name>itemListener</property-name>
<list-entries>
<value-class>com.ibm.bpe.jsf.handler.ItemListener</value-class>
<value>#{TaskInstanceDetailsBean}</value>
</list-entries>
</managed-property>
<managed-property>
<property-name>query</property-name>
<value>#{TaskInstanceQuery}</value>
</managed-property>
</managed-bean>
If a link in the associated List Component is clicked, the #{TaskInstanceDetailsBean) object that implements the ItemListener interface
is notified about the selected item. For more information about the List Component, see
BPCListHandler
and
ListTag
. (However, the List Component does not trigger such events as a result of changes
to check box selections).