Class SystemPropertyAttributeNameValidator

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

@Component("blSystemPropertyAttributeNameValidator") public class SystemPropertyAttributeNameValidator extends ValidationConfigurationBasedPropertyValidator
Validates that a SystemProperty's AttributeName field does not contain a reserved key word surrounded by ".". AttributeNames such as "should.not.fail" will be converted to "should__not__fail" by JSCompatibilityHelper. This will later lead to a Thymeleaf exception when it attempts to process #fields.hasErrors('fields[should__not__fail].value') in entityForm.html.
Author:
Chris Kittrell (ckittrell)
  • Field Details

    • LOG

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

    • SystemPropertyAttributeNameValidator

      public SystemPropertyAttributeNameValidator()
  • Method Details