hi,

I'm using MyFaces snapshot 20050826 for my JSR-168 portlets.

I'd like to access default portlet preferences which are stored in 
portlet.xml from my backing bean. But this didn't work - can anybody help me?

What I managed was to store and get portlet preferences from my
running portlet - so
these preferences are not stored in portle.xml but are managed by a 
persistance manager of the portlet container. 

But I need to get some default pref. from portlet.xml - which are
normally available
within the PortletPreferences object.

This is the code I'm using to access the portlet preferences:

int prefCount =
((javax.portlet.RenderRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getPreferences().getMap().size();

I also tried to cast the faces request to PortletRequest and
ActionRequest but that didn't help.



Thanks in advance
jm

Reply via email to