<f:setPropertyActionListener> Parent is not of type ActionSource

jsf, parent, setpropertyactionlistener

Solution

The `f:setPropertyActionLister` only works for `ActionSource` components like `h:commandLink` and `h:commandButton`. You should use one of these if you want to do it that way. See also

Problem

I would like to pass value when I click on a table row: ``` <h:outputLink id="lnkHidden" value="DatacenterProfile.html" style="text-decoration:none; color:white;"> <f:setPropertyActionListener target="#{DatacentersController.selectedId}" value="#{item.componentStatsId}" /> </h:outputLink> ``` I get this error: <f:setPropertyActionListener> Parent is not of type ActionSource, type is: javax.faces.component.html.HtmlOutputLink@aa25b91 Is there any appropriate JSF tag which can be used to replace `<h:outputLink>`?

Original source

Related problems