[ https://issues.apache.org/jira/browse/MYFACES-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178907#comment-16178907 ]
Dora Rajappan commented on MYFACES-4156: ---------------------------------------- <br/> <h:commandButton type="submit" id="submit" action="#{userBean.success}" actionListener="#{userBean.login}" value="Login" > <f:ajax event="click" render="helloForm" execute="helloForm"/> </h:commandButton> </h:panelGroup> <br/> <br/> <h:messages showSummary="true"/> <!-- <h:message showSummary="true" showDetail="false" style="color: red; font-weight: bold;" id="errors1" for="userId"/> <h:message showSummary="true" showDetail="false" style="color: red; font-weight: bold;" id="errors2" for="password"/> <h:messages redisplay="false" errorStyle="display:none" infoStyle="color:black" globalOnly="true" /> --> </h:form> I missed to include it in this comment. I changed it to the way u got the message still for ajax its not displayed. > Myface is not showing the FacesMessage after validation when > ValidatorException is thown. > ----------------------------------------------------------------------------------------- > > Key: MYFACES-4156 > URL: https://issues.apache.org/jira/browse/MYFACES-4156 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.3.0-beta > Reporter: Dora Rajappan > > Myfaces 2.3 is not showing the FacesMessage after validation when > ValidatorException is thrown. Same works with mojarra 2.2. > if (param.length() > 32) { > FacesMessage msg = new FacesMessage("Username should > not exceed 32"); > > throw new ValidatorException(msg); > } -- This message was sent by Atlassian JIRA (v6.4.14#64029)