Hi everyone,
I have a problem linking into the Jboss Portal that i hope someone is able to help explain to me.
We have an external service which is called from our portal application. The external service will make a callback to a jsf page within the portal including some extra parameters included in the URL using standard HTTP GET call. The callback URL is registred with the external service.
Example of the callback URL:
http://application-url.com/faces/Receiver.jsf?paramter1=123¶meter2=456
My problem is, that i need to call this jsf page within the portal which i can do by changing the callback URL to:
Example:
http://application-url.com/portal/portal/Portlet/Portlet/PortletWindow?action=1&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=/faces/Receiver.jsp¶mter1=123¶meter2=456
The problem is that the extra parameters (parameter1 & parameter2) are not available in the RequestParameterMap when doing the folling commmand:
{code}FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("parameter1"); {code}
I have made a workaround by overriding the MyFacesGenericPortlet.processAction method and manually adding the parameters to the response:
{code}response.setRenderParameters(Request.getParameterMap()); {code}
This works, but i am not happy with this solution.
Am i doing something wrong? Or do anyone have a sugestion? Is there a setting to set, so the extra parameters are included in the parameterMap?
Let me know if the question is not clear or you need more information?
Thanks a lot for your help.
Regards