2 Replies Latest reply on May 13, 2011 2:32 AM by goku88

    Can't change text color after migrating to RichFaces 4.0

    goku88

      Hi!

      After migration to richfaces 4 text color from my own css file is overwritten by enabled skin.

      Here is some code/configurations:

      In web.xml:

          <context-param>

              <param-name>org.richfaces.enableControlSkinning</param-name>

              <param-value>true</param-value>

          </context-param>

          <context-param>

              <param-name>org.richfaces.skin</param-name>

              <param-value>emeraldTown</param-value>

          </context-param>

       

      On my page I have:

      <rich:column  styleClass="${document.isActive()?'active_row':'non_active_row'}">

       

      And in css file:

      .non_active_row{

          color:gray;

          background-color: green;

      }

       

      After loading the page component looks like this:

      <td class="rf-dt-c non_active_row" id="j_idt13:expectedDocTable:0:j_idt16">Some text</td>

       

      The row has green background but the text is black, not gray. After changing class from "rf-dt-c non_active_row" to "non_active_row" text become gray so rf-dt-c class has overwriteen my custom class? Is there a way to disable this behaviour?

       

      Thanks for any help.