7 Replies Latest reply on Jan 18, 2007 8:12 AM by Dan Liu

    manual validation in Seam

    Dan Liu Apprentice

      s:decorate + s:message is a great feature in Seam. I wonder if there's a way to manually validate the user input. Here is my scenario, I have following code in my page:

       <h:inputText value="#{location.country}" id="country">
       <a:support event="onblur" reRender="countryError" action="#{mybean.checkLocation}"/>
       <a:outputPanel id="countryError><s:message/></a:outputPanel>

      mybean.checkLocation is the method that checks whether location is valid or not. I've tried to add a message to FacesMessage but it doesn't seem to work. anyone knows how to handle this situation?