The package includes a subclass of PropertyAccessorImpl named FirstWithLocalePropertyAccessor. This property accessor works only with derived properties that are defined using the firstWithLocale derivation method. FirstWithLocalePropertyAccessor determines the value of the derived property by looking up the currentDocumentLocale property of the Context object. Typically, this property is set by the LocaleVariantProducer, as described in Accessing the Context Object.

You can specify this property accessor in your definition file using the attribute value firstWithLocale. (Note that you do not need to map this name to the property accessor in the propertyAccessorMap.) For example:

<property name="displayName" property-accessor="firstWithLocale"/>

For information about the firstWithLocale derivation method, and about derived properties in general, see the ATG Repository Guide.

loading table of contents...