1 Reply Latest reply on Apr 1, 2011 3:53 AM by Ilya Shaikovsky

    Unexpected Validation error

    Jiri Chaloupka Newbie

      Hello,

      I have JSF (1.2, RF 3.3.3) page with following code:

       

      <h:form id="NewTaskForm" >

      ...

      <h:panelGroup>

                <h:outputText value="#{messages.task_project_phase}" />

      </h:panelGroup>

      <h:panelGroup>

                <h:selectOneMenu value="#{taskFormBean.phaseId}" id="phaseId"  >

          <f:selectItems value="#{taskFormBean.phases}" />

        </h:selectOneMenu>

        <a4j:outputPanel id="phase_a" ajaxRendered="true">

          <rich:message for="phaseId">

            <f:facet name="errorMarker">

              <h:graphicImage value="/imgs/error.gif" />  

            </f:facet>

          </rich:message>

        </a4j:outputPanel>

      </h:panelGroup>

       

      When I submit the form, I got:

      NewTaskForm:phaseId: Validation Error: Value is not valid

       

      I do not know why JSF page displays the message. The method associated with submit method is not call.

      What do I do by wrong way?

       

      Thank you

      Jiri