Have you ever tried to add a different background color like red to highlight invalid input fields when validation fails? With JSF 2.0, this is a trivial process, here is one way; .ui-input-invalid { background-color:red } <h:inputText value="#{bean.property}" required="true" styleClass="#{not component.valid ? 'ui-input-invalid' : ''}" /> component refers to the current component being rendered a
![Styling Invalid Input Fields with JSF](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)