0 Replies Latest reply on Sep 12, 2009 3:27 AM by tony.herstell1

    s:messages and rich:messages and decorator.

    tony.herstell1

      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"
       template="../../WEB-INF/pages/editDecorator.xhtml">
       <ui:define name="label">
       <h:outputText value="#{messages.entity_user_email_label}" />
       </ui:define>
       <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"/>
       </h:inputText>
       </ui:define>
       <ui:define name="hint">
       <s:formattedText value="#{messages.entity_user_email_hint}" />
       </ui:define>
      </s:decorate>
      


      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.