I am studying a system that uses jsf and primefaces. I expected that this snipped showed an error close a the input but the error appears as a message in the upper left corner of screen.
<h:form>
<div class="col-md-4">
<p:outputLabel value="Rua:"></p:outputLabel>
<p:inputText id="rua" value="#{enderecoFace.endereco.rua}" >
<p:message for="rua" ></p:message>
<f:validateLength minimum="3" maximum="3" />
<h:message for="rua" style="color:red"></h:message>
</p:inputText>
</div>
What can be going on?