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 に答える