This content has been marked as final.
Show 2 replies
-
1. Re: Changing color of a selected row in <rich:dataTable> in
nbelaevski Nov 2, 2008 2:17 PM (in response to shubniggurath)Walter,
Try that:<style type="text/css"> .highlight { background-color: lime; } </style> <rich:dataTable value="#{paramValues.f}" var="var" id="table"> <h:column> <h:selectBooleanCheckbox styleClass="highlightCheckbox"/> </h:column> <h:column> <h:outputText value="#{var}" /> </h:column> </rich:dataTable> <rich:jQuery query="click(function(){jQuery(this).attr('checked') ? addClass(this) : removeClass(this)})" selector="#table .highlightCheckbox"></rich:jQuery> <rich:jQuery name="addClass" timing="onJScall" query="parents('tr').addClass('highlight')" /> <rich:jQuery name="removeClass" timing="onJScall" query="parents('tr').removeClass('highlight')" />
-
2. Re: Changing color of a selected row in <rich:dataTable> in
shubniggurath Nov 4, 2008 3:57 AM (in response to shubniggurath)Hi ! Thanks, looks good, i'll try it out
Walter