I think it should be: af|inputText:disabled af|inputText::content { color: black }
Reasoning: 1) disabled state is on the inputText. 2) the af|inputText::content is a actually one element, not "the content under the input text", but rather "the content for the input text" This is because "af|inputText::content" is rendered as class="af_inputText_content" (in uncompressed mode) I believe. When you get confused, the best thing to do is turn off content compression and then use FireBug to look at the DOM to see the CSS classes that are added. -Andrew On Thu, Feb 5, 2009 at 8:26 AM, Omar Elprince <general.equal....@gmail.com> wrote: > Hi, > > I'm having a problem in styling a disabled input field: <tr:inputText > value="#{myBacking.myValue}" disabled="true" />. when the inputText is > disabled, I'm trying to change the text color to be black instead of gray. > > in my css i used > > af|inputText:disabled::content { > color:black; > } > > That does not work. Does any one have an experience with that case? > > Or it might be a bug that i need to report. > > --Omar >