3 Replies Latest reply on Jun 29, 2007 6:14 AM by tomas kral

    facesMessages and element id

    tomas kral Newbie

      I want add error message to a html input, but without success:

       @In
       private FacesMessages facesMessages;
      
      this.facesMessages.addFromResourceBundle(
       "testInputID",
       "value.missing",
       (Object[]) null
      );
      
      <h:selectOneMenu value="#{someValue}" id="testInputID">
       <f:selectItems value="#{someSelectItems}"/>
      </h:selectOneMenu>
      <h:message for="testInputID" styleClass="error"/>


      something wrong?