0 Replies Latest reply on Apr 27, 2009 4:33 AM by Ranjan Baisak

    Richfaces validation h:inputTextarea

    Ranjan Baisak Newbie

      Hi,
      I am trying to validate content of a textArea onBlur event. Please find the code and bean method for validation

      <h:inputTextarea rows="2" id="hardwareMeta" value="#{MetaDataRequestBean.hardwareMeta}" styleClass="medText">
       <a4j:support event="onblur" action="#{MetaDataRequestBean.validateHardwareMeta}" limitToList="true" ajaxSingle="true" reRender="output"/>
       </h:inputTextarea>
       <rich:message for="hardwareMeta"/>
      

      The user can enter multiple comma separated value and if any of the value is wrong then it would underlined with red color. Though I could able to show error message but it is validated in a separate validate method. Is there anyway I can validate in setter method of the bean and display the errors textarea instead of separate messages?

      Appreciate your help.

      regards,
      RB