WebSphere Commerce Portal integration event handlers

The MVCPortlet framework is designed in a flexible way so that each portlet request can be handled differently using an event handler. For each action event and render event, it is possible to define a corresponding event handler in the portlet MVC configuration file.

Although the MVC configuration allows you to define any customized event handler, the use of two generic event handlers is recommended:

  • A generic portlet action handler, MVCPortletActionHandler, which calls client libraries through configurations specified in the MVC configuration file.
  • A generic portlet render handler, MVCPortletRenderHandler, which returns the proper portlet JSP file according to the current portlet mode.

This programming pattern greatly reduces code redundancy, and maintains a consistent behavior across all WebSphere Commerce portlet events.