<h:dataTable border="1" value="#{InstallerHome.lstMyWork}"
var="jobsCases" width="100%" id="results" headerClass="tableHeader"
styleClass="stripe">
<h:column>
<f:facet name="header">
<h:commandLink value="Last Name"
action="#{InstallerHome.workSort}" style="color: black; ">
<f:param name="SortOrderBy" value="clientLastName"></f:param>
<f:param name="IsAscending"
value="#{(InstallerHome.isAscending == 'true') ? 'false' : 'true' }"></f:param>
</h:commandLink>
</f:facet>
<h:outputText value="#{jobsCases.clientLastName}" />
</h:column>
在此,我想突出显示单击链接的行,该行的值为LastName。
答案 0 :(得分:0)
给出要突出显示的 id 属性,并针对需要单击的元素:
onclick="document.getElementById('theID').select();
document.getElementById('theID').setSelectionRange(0, 99999999);"