This is used for error reporting when doing validation on a component, example:
<h:inputText id="username" value="#{managedBean.username}" required="true" />
<h:message style="color:red" for="username" />
<h:commandButton action="login" value="Login" />