admin管理员组文章数量:1327301
In plain html, when I want to point-out a table row, I just write:
<tr onmouseover="javaScript_(jQuery)_Code_To_Add_Pointed_Out_Class"
onmouseout="javaScript_(jQuery)_Code_To_Remove_Pointed_Out_Class">
...
</tr>
Is there a way to do this in a <h:dataTable>
for JSF?
Something with Primefaces or what else?
In plain html, when I want to point-out a table row, I just write:
<tr onmouseover="javaScript_(jQuery)_Code_To_Add_Pointed_Out_Class"
onmouseout="javaScript_(jQuery)_Code_To_Remove_Pointed_Out_Class">
...
</tr>
Is there a way to do this in a <h:dataTable>
for JSF?
Something with Primefaces or what else?
- Maybe a duplicate of this question: stackoverflow./questions/5055384/… – Robin Commented Sep 3, 2011 at 22:02
1 Answer
Reset to default 8Styling is to be done by CSS. E.g.
<h:dataTable styleClass="myTableClass">
...
</h:dataTable>
with
.myTableClass>tbody>tr {
background: pink;
}
.myTableClass>tbody>tr:hover {
background: purple;
}
JavaScript hacks like in your question example are only necessary for ancient browsers which are already deprecated for long now.
本文标签: javascriptjsf decorate dataTable row on mouse overoutStack Overflow
版权声明:本文标题:javascript - jsf decorate dataTable row on mouse overout - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742204048a2432483.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论