hi all, I have a problem trying to diplay validation error with facesMessages.addToControlFromResourceBundle : no message is displaying on the client side. I am using a custom validator:
<a4j:region renderRegionOnly="true"> | <h:inputText id="email" value="#{account.email}" styleClass="text" required="true" tabindex="2"> | <a4j:support event="onchange" reRender="emailMsg" /> | <f:validator validatorId="validators.checkMailUnicity" /> | </h:inputText> | <a4j:outputPanel id="msg" ajaxRendered="true"> | <h:message id="emailMsg" for="email" styleClass="errors" /> </a4j:outputPanel> | </a4j:region> | and the server side : | public void validate(FacesContext context, UIComponent component, | Object value) throws ValidatorException | { | String email = (String) value; | if (!isEmailAvailable(email)) | { | facesMessages.addToControlFromResourceBundle(component.getClientId(context), "AccountAlreadyExist"); | ... Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112094#4112094 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112094 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user