Amy N. Snow wrote:You assign a class to the tr:inputText element. Then you define the css like this: .yellowInput af|inputText::content { background-color:yellow; } .redInput af|inputText::content { background-color:red; <tr:inputText styleClass="yellow"/> <tr:inputText styleClass="red"/>