Kasper Frederiksen [
http://community.jboss.org/people/kasper.frederiksen] created the
discussion
"Linking to a portal page including extra parameters"
To view the discussion, visit:
http://community.jboss.org/message/549024#549024
--------------------------------------------------------------
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¶meter...
http://application-url.com/faces/Receiver.jsf?paramter1=123¶meter...
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?ac...
http://application-url.com/portal/portal/Portlet/Portlet/PortletWindow?ac...
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
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/549024#549024]
Start a new discussion in JBoss Portal at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]