concept portletwrappingcontroller in category java

This is an excerpt from Manning's book Portlets in Action.
The Spring Portlet MVC framework provides many out-of-the-box implementations of controllers that can be directly configured in your application context. The built-in controllers in Spring Portlet MVC include ParameterizableViewController, PortletModeNameViewController, and PortletWrappingController.
The PortletWrappingController internally manages the complete lifecycle of a portlet instance, instead of allowing the lifecycle to be managed by the portlet container. This controller type is most appropriate when you want to invoke an existing portlet with Spring’s request-dispatching mechanism.
The following listing shows an application context that uses the PortletWrappingController to manage the Hello World portlet created in chapter 1.
The PortletWrappingController
is defined. The fully qualified name of the portlet class
that the PortletWrappingController manages is specified. A name is assigned to the portlet managed by the controller
. If you don’t specify a name for the portlet, the name of the controller bean is set as the portlet name. VIEW portlet mode
is mapped to the PortletWrappingController.
is defined. The fully qualified name of the portlet class
that the PortletWrappingController manages is specified. A name is assigned to the portlet managed by the controller
. If you don’t specify a name for the portlet, the name of the controller bean is set as the portlet name. VIEW portlet mode
is mapped to the PortletWrappingController.