You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Marcio E Miranda <Ma...@fastsearch.com> on 2006/04/03 22:30:20 UTC
MyFacesGenericPortlet messing with PortletPreferences in Liferay?
Hi,
If I run the following code in the doView method of a portlet extending
GenericPortlet (reference implementation), I can get (in Liferay) the
preferences configured in the portlet.xml descriptor for the portlet
without problems.
---
protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException{
PortletPreferences prefs = request.getPreferences();
Enumeration names = prefs.getNames();
---
But if I run this same code in the doView method of a portlet extending
MyFacesGenericPortlet, the enumeration shows the initialization
parameters instead of portlet preferences! In others cases it shows no
preferences at all, even though there are preferences defined in the
portlet.xml descriptor. It seems to me that MyFacesGenericPortlet is
messing with the portlet preferences.
- Marcio.