This content has been marked as final.
Show 4 replies
-
1. Re: h:message
ilya_shaikovsky Feb 10, 2010 6:59 AM (in response to zelenka)1 of 1 people found this helpfulYou 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
-
2. Re: h:message
zelenka Feb 10, 2010 7:08 AM (in response to ilya_shaikovsky)Thanks for reply. The last sentence seem to be solution for me. But how to recognize that message was addes for the component? -
3. Re: h:message
ilya_shaikovsky Feb 10, 2010 7:19 AM (in response to zelenka)FacesContext provides getMessages(String clientId) method. Which allows to get messages for particular component. -