Hi Miranda,

 

I’ve been thinking about what you are saying and I can’t figure out what could be wrong. 

 

In all of MyFaces impl, there is no reference to the PortalPreferences class.  We don’t do anything with it. 

 

I think the problem must either be in LifeRay or in your application.  Are you doing anything with PortalPreferences during the processAction/lifecycle.execute() phase?

 

Also, when you say “reference implementation”, what are you referring to?  Do you mean the JSF reference implementation or the Portal reference implementation?

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert


From: Marcio E Miranda [mailto:[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 4:30 PM
To: MyFaces Discussion
Subject: 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.

Reply via email to