I want to use an existing action listener that provides common functionality for reRender and oncomplete with rich:tree. Since the tree it is not of type ActionSource and the listener needs components of type AjaxActionComponent, how can I attach f:actionListener to the tree tag?
Same question for a4j:support. I would like to handle selection outside of the built-in tree behavior. How can I invoke the node selection listener via a4j support, passing the selected node?
As it stands, a4j support tag as shown below is ignored completely?
<rich:tree id="deviceGroupsTree"
nodeSelectListener="#{deviceGroupsAction.processSelection}"
ajaxSubmitSelection="true"
nodeFace="#{node.type}"
adviseNodeSelected="#{deviceGroupsAction.adviseNodeSelected}"
adviseNodeOpened="#{deviceGroupsAction.adviseNodeExpanded}"
changeExpandListener="#{deviceGroupsAction.changeExpandListener}"
onselected="deviceGroupsList_processSelection(this)"
switchType="client"
value="#{deviceGroupsAction.deviceGroupsRoot}"
var="node">
<a:support event="onselected" action="#{deviceGroupsAction.processSelection}" oncomplete="alert('onselected');">
<f:actionListener binding="#{deviceEventSessionListener}"/>
</a:support>
</rich:tree>
Hi Thomas,
Remove these attributes: "ajaxSubmitSelection" & "onselected" and try.