如何在许多表中防止特定adf表中的蒙皮

时间:2013-12-02 13:38:51

标签: jsf oracle-adf

我有两个adf表并为表应用了外观。现在它显示了两个表的蒙皮。我的要求是仅为单个表进行蒙皮。如何在adf应用程序中的多个表中为一个表应用蒙皮。

//我的css文件 我用这个代码来获取adf行的替代背景颜色。我只想要一个表。

    af|table::data-row af|column::data-cell{
    background-color:rgb(234,255,252);
    }

    af|table::data-row af|column::banded-data-cell{
    background-color:White;
    }
    af|column::column-header-cell
    {
      color: Black;

      font-weight: bold;
    }
   // trinidad-skins.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
      <skin>
        <id>skin.desktop</id>
        <family>skin</family>
        <extends>fusionFx-v1.desktop</extends>
        <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
        <style-sheet-name>skins/tablerowcolor.css</style-sheet-name>
      </skin>
    </skins>
   // trinidad-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">

      <!--<skin-family>skyros</skin-family>
      <skin-version>v1</skin-version>-->
      <skin-family>skin</skin-family>

    </trinidad-config>

1 个答案:

答案 0 :(得分:3)

使用CSS类来设置特殊表的样式,并省略默认情况下没有样式

例如,将代码更改为以下内容:

af|table.stylesTable::data-row af|column::data-cell{
background-color:rgb(234,255,252);
}

af|table.stylesTable::data-row af|column::banded-data-cell{
background-color:White;
}
af|column.stylesTable::column-header-cell
{
  color: Black;

  font-weight: bold;
}

在您的JSPX或JSF中,将表的styleClass更改为 stylesTable ,并且不要在您不想要样式的那个中输入任何内容。

相关问题