1 of 1 people found this helpful
You could use rich:ajaxValidator to validate inputs on some user events.
Messages should be shown on the events if validation failed.
You could define style attribute at outputLabel with EL conditionally according to the fact if messages was added for the component
Thanks for reply. The last sentence seem to be solution for me. But how to recognize that message was addes for the component?
FacesContext provides getMessages(String clientId) method. Which allows to get messages for particular component.