10 Replies Latest reply on Jun 12, 2013 4:53 AM by Mohammad Weshah

    Validation message disappear

    Mohammad Weshah Novice

      Hello All,

      I have a validation on my fileds JSR-303 when i press the button all message appear ,the problem is after fix one of theses messages all other message disappaer i.e(i want the message still appear till i fix the error)

       

      code :

       

      <rich:select  id="addType"

                        defaultLabel="#{msg.GEN_SELECT_VALUE} #{lbs.OUT_TYPE}"

                        

                        value="#{outsourcedBacking.addOutSourcedBean.type.id}"

                        valueChangeListener="#{outsourcedBacking.addRepTypeChangeListener}" >

           <f:selectItems value="#{outsourcedBacking.populateLKPListByParentId(1)}"/>

              <a4j:ajax event="change" />

             

          </rich:select>

         

          <rich:message id="addTypeMSG" for="addType" />

       

       

           <h:panelGroup>

                      <h:outputLabel for="addNameAr" value="#{lbs.OUT_NAME_AR}" />

                      <h:outputLabel for="addNameAr" value="#{lbs.GEN_SPERATOR}" />

                      <h:outputLabel for="addType" value="#{lbs.GEN_REQUIRED}" styleClass="required" />

          </h:panelGroup>

          <h:inputText id="addNameAr"

                       valueChangeListener="#{outsourcedBacking.arNameChangeListener}"

                       value="#{outsourcedBacking.addOutSourcedBean.nameAr}" 

                       maxlength="100"

                       size="100" >

           <a4j:ajax event="change" />

          

          </h:inputText>

          <rich:message for="addNameAr" />

         

          <h:panelGroup>

                      <h:outputLabel for="addNameEn" value="#{lbs.OUT_NAME_EN}" />

                      <h:outputLabel for="addNameEn" value="#{lbs.GEN_SPERATOR}" />

                      <h:outputLabel for="addType" value="#{lbs.GEN_REQUIRED}" styleClass="required" />

          </h:panelGroup>

          <h:inputText id="addNameEn" valueChangeListener="#{outsourcedBacking.enNameChangeListener}" value="#{outsourcedBacking.addOutSourcedBean.nameEn}"  maxlength="100" size="100" >

           <a4j:ajax event="change" />

          </h:inputText>

          <rich:message for="addNameEn"  />

       

       

       

      Reagrds

      Mohd.Weshah