This content has been marked as final.
Show 3 replies
-
1. Re: bookmarkable portlet urls
julien1 Dec 26, 2006 11:37 AM (in response to jgilbert)I think it is an implementation detail of the JSF bridge you are using. I don't know if it is possible to map the portlet render parameters to JSF parameters.
JBoss Portal since 2.4 tries to shove the render parameters in the URL in clear format as much as it is possible -
2. Re: bookmarkable portlet urls
julien1 Dec 26, 2006 11:49 AM (in response to jgilbert)Probably that Santa Stan can tell us more about the myfaces bridge.
-
3. Re: bookmarkable portlet urls
seidler2547 Jan 2, 2007 5:19 AM (in response to jgilbert)With the MyFaces bridge it's quite easy
Links look like/portal/index.html?ctrl:cmd=render&ctrl:window=default.order.OrderPortletWindow&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=/showOrder.jsp&orderNr=1234
an they can be rendered throughJBoss[Render|Action]Request.getPortalNode(); // navigate to the Node you need using PortalNode.getParent()/.resolve() JBoss[Render|Action]Response.create[Render|Action]Url(PortalNode);
It is important to render Window links, not page links, because only Window Links will pass the additional parameters on to the portlet. Within your app there are two ways to access the params:
In the Bean:FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("orderNr");
In the JSP:<h:outputText value="#{param.orderNr}"/>
or<h:outputText value="#{param['orderNr']}"/>
Have fun ;)
Stefan