6 Replies Latest reply on Nov 1, 2013 3:19 PM by Sahar Hassan

    selectManyCheckbox Skip Validation on uncheck

    Sahar Hassan

      JDev 11.1.1.5.0

       

      If I am selecting one check box and immediately unchecking it, it is throwing a mandatory validation error which I want to skip.

       

      Code for your reference:

       

          <af:selectManyCheckbox label="#{masdResources.CHOOSE_CARDPRODUCT}" id="smc2"

                                                           value="#{backingBeanScope.SelectManyCheckboxBean.selectedCardTypes}"

                                                           required="#{pageFlowScope.RuleEngineBean.uiFieldInfo['P_F36']['P_F36']['xRequired']}"

                                                           autoSubmit="true"

                                                           valueChangeListener="#{backingBeanScope.SelectManyCheckboxBean.selectManyCheckboxChangeEvent}"

                                                           simple="true"

                                                           layout="vertical"

                                                           disabled="#{bindings.taskDefinitionName.inputValue == 'MerchantResponse' or bindings.taskDefinitionName.inputValue == 'MerchantContractSignatureResponse' or bindings.taskDefinitionName.inputValue == 'MerchantResponseForBackEnd' or bindings.taskDefinitionName.inputValue == 'WaitForBankGuarantee' or bindings.taskDefinitionName.inputValue == 'SendRejectedEmail' or bindings.taskDefinitionName.inputValue == 'ShowError' or bindings.taskDefinitionName.inputValue == 'ErrorHandling' or bindings.taskDefinitionName.inputValue == 'PostCAPSInfo'}"

                                                           visible="#{pageFlowScope.RuleEngineBean.uiFieldInfo['P_F36']['P_F36']['xVisible']}">

                                      <f:selectItems value="#{backingBeanScope.SelectManyCheckboxBean.allCardTypes}"

                                                     id="selectItems2"/>

                                    </af:selectManyCheckbox>