I've 2 portlet instances with 2 different preference parameters
I'm just trying to retrieve this portlet preference parameters from my jsf portlet.
PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
YES !
thanks a million Thomas :)
Hi...
Im get Preferences like
PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
and im get te exception in cast
org.jboss.seam.web.IdentityRequestWrapper
HelpMe please...
You need to listen for the correct request:
Object responseObject = FacesContext.getCurrentInstance().getExternalContext().getRequest(); if (responseObject instanceof RenderRequest) {
Thanks ...
But if this condition is not met...could get the PortletRequest object instance?
I need to extract the Preferences of the portlet.
like
PortletPreferences reqPreferences = rRequest.getPreferences();