The MainMenu cartridge, which displays a menu in the header that allows the shopper to choose a top-level category or a sub-category that belongs to a top-level category, does not reference a StartEndDateValidator component out of the box. A StartEndDateValidator component verifies that a category has a valid start and end date in order to be displayed. An application module can include this type of verification by overriding the startEndDateValidator property of the /atg/endeca/assembler/cartridge/handler/CategoryNavigation component, for example:

# Validate top-level-categories/sub-categories by start/end date.
startEndDateValidator=/atg/store/collections/validator/StartEndDateValidator

The StartEndDateValidator component shown in this example is located in the CommerceAccelerator/Base module and contains the following configuration:

$class=atg.service.collections.validator.StartEndDateValidator

currentDate=/atg/dynamo/service/CurrentDate
startDatePropertyName=startDate
endDatePropertyName=endDate

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices