[jboss-user] [JBoss Portal] - Linking to a portal page including extra parameters

Kasper Frederiksen do-not-reply at jboss.com
Mon Jun 21 17:05:45 EDT 2010


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&parameter2=456 http://application-url.com/faces/Receiver.jsf?paramter1=123&parameter2=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&paramter1=123&parameter2=456 http://application-url.com/portal/portal/Portlet/Portlet/PortletWindow?action=1&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=/faces/Receiver.jsp&paramter1=123&parameter2=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

--------------------------------------------------------------

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&containerType=14&container=2011]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100621/433a970d/attachment-0001.html 


More information about the jboss-user mailing list