Hi all,

I have two pulldown select menus that are using the same validator.
when submitting the page, it appears that only the first select is
getting validated and the second isn't validated at all.  This was
confirmed by placing a breakpoint on the "validate" method of my
custom validator, called "selectOneMenuValueValidator".

The validator is checking that the selected value isn't the first item
in the list.

Is there something I need to reset once the validation passes on the first menu?

Thanks,
Jason



               <h:panelGrid columns="2" columnClasses="columnRight
optionLabel, columnLeft">
                   <h:outputText value="#{messages['merchantStatus.status']}"/>
                   <h:panelGroup>
                       <h:selectOneMenu id="status"
value="#{batchPartnerSetup$merchantStatus.selectedStatusId}">
                           <f:selectItems
value="#{batchPartnerSetup$merchantStatus.statusPulldown}"/>
                           <f:validator
validatorId="selectOneMenuValueValidator"/>
                       </h:selectOneMenu>
                       <h:message for="status"
errorClass="validationError" fatalClass="validationError"
                                  warnClass="validationError"
infoClass="validationError"/>
                   </h:panelGroup>
                   <h:outputText
value="#{messages['merchantStatus.statusComment']}"/>
                   <h:panelGroup>
                       <h:selectOneMenu id="comment"
value="#{batchPartnerSetup$merchantStatus.selectedStatusComment}">
                           <f:selectItems
value="#{batchPartnerSetup$merchantStatus.statusCommentPulldown}"/>
                           <f:validator
validatorId="selectOneMenuValueValidator"/>
                       </h:selectOneMenu>
                       <h:message for="comment"
errorClass="validationError" fatalClass="validationError"
                                  warnClass="validationError"
infoClass="validationError"/>
                   </h:panelGroup>
               </h:panelGrid>

Reply via email to