2 Replies Latest reply on Jun 1, 2010 6:32 PM by Mike Kienenberger

    [begginer] h:inputText and global FacesMessage

    m m Newbie

      I have one Global h:messages in webapp.

      In my example lenghtvalidator doesn't generate global FacesMessage.

       

      <h:form>
      <h:messages globalOnly="true"/>
       <h:inputText value="#{searchBean.text}" id="searchInput">
       <f:validateLength minimum="3"/>
       </h:inputText>
      </h:form>
      
      
      

      Of course when i change globalOnly to false i get my message.

       

      <h:form>
      <h:messages globalOnly="false"/>
       <h:inputText value="#{searchBean.text}" id="searchInput">
       <f:validateLength minimum="3"/>
       </h:inputText>
      </h:form>
      

       

      How to make that validator generate global message to show in h:messages ?