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.

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved.

Legal Notices