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>?
The
f:setPropertyActionListeronly works forActionSourcecomponents likeh:commandLinkandh:commandButton. You should use one of these if you want to do it that way. See also