Custom
ActionListener
that inspects the
UIComponent
that signaled the current
ActionEvent
to
determine whether it is a child of any iterator type of component (such as
UIData
) that uses a
SelectionAware
data model implementation. If a containing SelectionAware model is found, the row containing
the event-signaling component instance will be selected. This enables convenient access to the selected model state
at any time through EL expressions such as #{model.selectedRow.id} without having to rely on the whether or not the
current row index is pointing to the desired row as it would need to be to use an expression such as
#{model.rowData.id}