i have h:messages to display error messages, and there's a component that i want its style to change in case of validation error occurs (if any component has a validation error or any validation message is rendered then change the style of this specific component).
i know about the way to change the style if the component has validation errors:
JSF : Better way to check for existence of <h:message for="id"/>
but i want a more general way, to change style if any component in the form is not valid, or in other words any validation message is rendered.
please advise how to accomplish that.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…