10.1.10 config-param
JSR 168 portlets use a PortletPreference object instead of the PortletData and PortletSettings objects. If you have defined any config-param elements in your portlet.xml, you should convert these to portlet-preference elements.
Change:
Example 10-5 config-param in portlet.xml
<config-param> <param-name>favoriteFood</param-name> <param-value>Pizza</param-value> </config-param>
![]()
to:
Example 10-6 portlet-preference
<portlet-preferences> <preference> <name>favoriteFood</name> <value>Pizza</value> <read-only>true</read-only> </preference> </portlet-preferences>
![]()
The preference element contains a read-only element. If the preference is read-only, only the administrator can update this preference.
ibm.com/redbooks