1

jsf:

<rich:dataTable id="files" styleClass="table" headerClass="header"
value="#{file}" var="fileRecord" rendered="#{file.rowCount>0}"
rowClasses="even,odd" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<rich:column>

前提条件:
有带有白色和灰色行的斑马样式表
步骤:
1.鼠标悬停在行上,它悬停正常
2.鼠标移开,它变成白色

后置条件:表失去了“斑马”

#{a4jSkin.tableBackgroundColor}这是因为评估为白色而发生的。
如何保持斑马造型?

感谢您提供任何帮助。

4

2 回答 2

2

应改为:

#{a4jSkin.rowBackgroundColor}
于 2011-04-12T12:55:39.970 回答
0
<rich:dataTable id="files" styleClass="table" headerClass="header"
  value="#{file}" var="fileRecord" rendered="#{file.rowCount lt 0}"
  rowClasses="even,odd" 
  onRowMouseOver="tableRowColor=this.style.backgroundColor;
    this.style.backgroundColor='#dedede'"
  onRowMouseOut="this.style.backgroundColor=tableRowColor">
<rich:column>
于 2014-05-29T15:38:00.300 回答