change background color of a row in rich:dataTable
i have a row in rich:datatable, which has a link in one of its column. Onclick of this click i need to change the background color of the selected row. how can i achieve this? You can do this with the following code: <a4j:form id="myfrm"> <rich:dataTable id="myTbl" value="#{myBean.tblData}" var="tblData"> <rich:column> <f:facet name="header">Col1</f:facet> <h:outputText value="#{tblData}" /> </rich:column> <rich:column> <f:facet name="header">Col2</f:facet> <h:outputText value="#{tblData}" /> </rich:column> <a4j:support event="onRowClick" oncomplete="highlightSingleRow(this)"/> </rich