我想在单击表格行时传递值:
<h:outputLink id="lnkHidden" value="DatacenterProfile.html" style="text-decoration:none; color:white;">
<f:setPropertyActionListener target="#{DatacentersController.selectedId}" value="#{item.componentStatsId}" />
</h:outputLink>
我收到此错误:
<f:setPropertyActionListener> Parent is not of type ActionSource, type is: javax.faces.component.html.HtmlOutputLink@aa25b91
是否有任何合适的 JSF 标签可用于替换 <h:outputLink>
?
最佳答案
f:setPropertyActionLister
仅适用于 ActionSource
诸如 h:commandLink
和 h:commandButton
之类的组件。如果您想这样做,您应该使用其中之一。另请参阅
关于jsf - <f :setPropertyActionListener> Parent is not of type ActionSource,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15599191/