Storing Objects in Action Requests

As per the PLT.10.4.4 section of the Portlets 2.0 spec:

[The portlet programming model] provides a clean separation of the action semantics from the rendering of the content, however, it may create some issues with servlet-based applications that don’t follow this strict Model-View-Controller pattern […] some applications need to transport complex objects instead of strings.

If that is your case,  add to your deployment descriptors:

<container-runtime-option>
  <name>javax.portlet.actionScopedRequestAttributes</name>
  <value>true</value>
</container-runtime-option>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s