0 Replies Latest reply on Sep 12, 2009 3:27 AM by Tony Herstell

    s:messages and rich:messages and decorator.

    Tony Herstell Master

      I have a form that I submit and I expect a message to be shown next to the field in error, but it actually gets shown in the messages area.

      } else {
       log.info("Failed on unique user Check.");
       statusMessages.addToControlFromResourceBundle("registration_email", Severity.ERROR, "user_email_already_exists_in_system");

      <s:decorate id="entity_user_email_decorator"
       <ui:define name="label">
       <h:outputText value="#{messages.entity_user_email_label}" />
       <ui:define name="content">
       <h:inputText id="registration_email" value="#{risingstars.user.email}"
       required="true" size="70">
       <a4j:support event="onblur" ajaxSingle="true" limitToList="true" reRender="entity_user_email_decorator"/>
       <ui:define name="hint">
       <s:formattedText value="#{messages.entity_user_email_hint}" />

      I have tried using entity_user_email_decorator to no avail.

      What is insane is that this same construct works elsewhere in the project (login).

      Project is available (svn) if you require.