Develop > Presentation layer > Customize IBM Sales Center > Dynamic IDs
Declare a dynamic IdResolver
In some cases, it may not be possible to statically declare the identifier for an extension definition. There are cases where the choice of which extension definition to use needs to be made at run time. This section explains how to declare a dynamic IdResolver.
The dynamic IdResolver will be responsible for resolving a dynamic ID into the ID of a valid extension declaration.
Procedure
- Create a new plug-in to contain the extensions.
- In the plugin.xml file of the new plugin, declare the dynamic IdResolver using the com.ibm.commerce.telesales.dynamicIdResolvers extension point. For example:
<extension point="com.ibm.commerce.telesales.dynamicIdResolvers"> <dynamicIdResolver id="storeTypeSensitiveIdResolver" class="com.ibm.commerce.telesales.ui.resolvers.StoreTypeSensitiveIdResolver"/> <dynamicIdResolver id="localeSensitiveIdResolver" class="com.ibm.commerce.telesales.ui.resolvers.LocaleSensitiveIdResolver"/> </extension>
Results
A locale sensitive and a store sensitive dynamic ID resolver are declared in the com.ibm.commerce.telesales.ui plug-in.
Related concepts
Related tasks