java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.validation.ValidationConfigurationBasedPropertyValidator
org.broadleafcommerce.openadmin.server.service.persistence.validation.RequiredIfPropertyValidator
All Implemented Interfaces:
PropertyValidator

@Component("blRequiredIfPropertyValidator") public class RequiredIfPropertyValidator extends ValidationConfigurationBasedPropertyValidator
Makes a field required if the value of another field matches another value. Designed for use where selecting a radio makes another field required.

This validator supports two approaches. For both approaches, use compareField to indicate the property name you want to compare ...

To compare against a specific value, also provide a "compareFieldValue" attribute.

To compare against a specific fieldName, also provide a "compareFieldName" attribute

Author:
Brian Polster
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
  • Constructor Details

    • RequiredIfPropertyValidator

      public RequiredIfPropertyValidator()
  • Method Details