This content has been marked as final.
Show 2 replies
-
1. Re: How can I pass a parameter through the URL as the user clicks on a MENU's item, so I can get this value afterwards?
claudio4j Sep 21, 2011 3:31 PM (in response to renanferraro)See if it works:
if (FacesContext.getCurrentInstance() != null) { Object request = FacesContext.getCurrentInstance().getExternalContext().getRequest(); if (request instanceof PortletRequest) { PortletRequest portletRequest = (PortletRequest) request; Object val = portletRequest.getAttribute("param"); if (val instanceof String[] && ((String[])val).length == 1) { String paramValue = ((String[])val)[0]; log("param = " + paramValue); } } }
-
2. Re: How can I pass a parameter through the URL as the user clicks on a MENU's item, so I can get this value afterwards?
hoang_to Sep 26, 2011 12:40 AM (in response to claudio4j)Parameter is not attribute, so you must use the method getParameter method declared in Portlet API