WebSphere Commerce EnterpriseWebSphere Commerce Professional

Replacing a widget manager

In rare cases, it may be necessary to replace a Sales Center widget manager with your own widget manager. This means that your new widget manager will be responsible for providing behavior for all of the controls and table columns that were previously handled by the Sales Center widget manager.

About this task

To replace a Sales Center widget manager:

Procedure

  1. Create a plug-in to hold your extensions.
  2. Declare the new widget manager using the com.ibm.commerce.telesales.widgets.widgetManagers extension point.
  3. Use the system configurator to indicate that the new declaration should be used instead of the original declaration.
  4. Include the widget manager in the definition of the managed composite that includes the controls that the widget manager is going to be responsible for managing. Replace the managed composite with a new one that includes the new widget manager. Use referenceId to pull in the original managed composite definition and then add the new widget manager.

Results

The more common case for replacing a widget manager is to modify the control definition and change the manager type. This will cause the original widget manager to start ignoring the control. You can then write a new widget manager that will understand the new manager type and start managing the modified control.