Hi,
according to the J2 docs the preference tag in a psml fragment should
overwrite the portlet preferences specified in portlet.xml.
BUT THIS ISN'T THE CASE !
Am i doing something wrong ?
portlet.xml:
...
<portlet id="SearchSimple">
...
<portlet-preferences>
<preference>
<name>titleKey</name>
<value>VALUE_PORTLET</value>
</preference>
</portlet-preferences>
</portlet>
page.psml:
...
<fragment id="search-simple-portlet" type="portlet"
name="ingrid-portal-apps::SearchSimple">
...
<preference name="titleKey" readOnly="false">
<value>VALUE_PSML</value>
</preference>
</fragment>
When i fetch the preference in the doView method of the portlet
i get the value from portlet.xml and NOT the one from page.psml.
PortletPreferences prefs = request.getPreferences();
// delivers "VALUE_PORTLET" and not "VALUE_PSML"
String titleKey = prefs.getValue("titleKey", "default");
When i remove the preference from portlet.xml I get the one from
page.psml ! Is this a Bug (i am using jetspeed 2.0.1) or am i doing
something wrong ?
The docs say
(http://portals.apache.org/jetspeed-2/guides/guide-psml.html#Portlet_Fragments):
"PSML element <preference>:
Specifies initial user preference settings for fragment portlet,
OVERRIDDING ANY PORTLET PREFERENCES SET IN PORTLET.XML" <-- !!!!!!
thanx for any help !
regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]