Joachim Müller wrote:
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 ?

Try it from the SVN Head, I seem to remember that portlet preferences in fragments were added after the release

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to