0 Replies Latest reply on Jul 2, 2008 1:06 AM by mirco

    h:messages works, h:message doesn't

    mirco

      hello,


      I use a simple ajax input field validator


      <a:outputPanel id="loginInput">
      <h:inputText value="#{user.login}" id="login" required="true">
      <a:support event="onblur" action="#{userHome.checkLogin( user.login )}" ajaxSingle="true" reRender="loginInput, globalMessages" />
      </h:inputText>
      <br />
      <h:message for="login" style="color: blue" />     
      </a:outputPanel>



      in userHome.checkLogin() I add a faces message:


      facesMessages.addToControl( "login", "This login already exists in the database." );



      Unfortunatelly, this message does not show up after ajax-call. But if I use h:messages instead h:message, it shows up. How is this possible? I really need h:message working...