5 Replies Latest reply on May 24, 2011 6:02 PM by lessonz

    Validation messages disappearing

    lessonz Newbie

      I'm new to RichFaces and JSF in general, and I'm still trying to get my legs under me. I'm using 4.0.0.FINAL. I have two inputText fields that each have their own validators. Their messages seem to have really flaky behavior, appearing and disappearing seemingly at random. At times one will appear and not the other. I'm sure I must just be missing something or doing something wrong. Thanks.

       

       

      <h:panelGrid id="testGrid" class="centered" columns="3"
          columnClasses="oneThird,oneThird,oneThird">
          <h:outputText value="Header 1" class="bold" />
          <h:outputText value="Header 2" class="bold" />
          <h:outputText value="" class="bold" />
          <h:outputText value="Label 1"
              rendered="#{testBean.value1!='value1'}" />
          <h:inputText binding="#{testBean.name}"
              value="#{testBean.name}" id="in1"
              class="inClass" rendered="#{testBean.value1!='value1'}"
              autocomplete="off">
              <a4j:ajax event="keyup" execute="@this"
                  render="actionButtons, warningPanel" />
          </h:inputText>
          <rich:message for="in1"
              rendered="#{testBean.value1!='value1'}" />
          <h:outputText value="Label 2"
              rendered="#{testBean.value1!='value2'}" />
          <h:inputText binding="#{testBean.email}"
              value="#{testBean.email}" id="in2"
              class="inClass" rendered="#{testBean.value1!='value2'}"
              autocomplete="off">
              <a4j:ajax event="keyup" execute="@this"
                  render="actionButtons, warningPanel" />
          </h:inputText>
          <rich:message for="in2"
              rendered="#{testBean.value1!='value2'}" />
      </h:panelGrid>