You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Work in progress

Portlet init parameters

Below is the init-param elements that you can set up in portlet.xml for configuring the portlet mode -> xwork namespace mappings for the portlet. Basically, you can think of the different portlet modes as different sub-applications, so it can be useful to set up the xwork.xml configuration with different namespaces for the different portlets and modes:

Key

Description

Default

portletNamespace

The namespace for the portlet in the xwork configuration. This namespace is prepended to all action lookups, and makes it possible to host multiple portlets in the same portlet application. If this parameter is set, the complete namespace will be /portletNamespace/modeNamespace/actionName

The default namespace.

viewNamespace

The namespace in the xwork config for the view portlet mode.

The default namespace.

editNamespace

The namespace in the xwork config for the edit portlet mode.

The default namespace.

helpNamespace

The namespace in the xwork config for the help portlet mode.

The default namespace.

defaultViewAction

Name of the action to use as default for the view portlet mode, when no action name is present.

default

defaultEditAction

Name of the action to use as default for the edit portlet mode, when no action name is present.

default

defaultHelpAction

Name of the action to use as default for the help portlet mode, when no action name is present.

default

  • No labels