-
1. Re: Request param acquire
pmuir Jan 4, 2008 11:34 AM (in response to kooudy)You can't have two parameters in a request with the same name.
-
2. Re: Request param acquire
mrobinson28 Jan 25, 2008 12:08 PM (in response to kooudy)This is possible but not with the javax.faces API. You would have to fall back to the servlet API.
Note the differences:
http://java.sun.com/javaee/5/docs/api/javax/faces/context/ExternalContext.html#getRequestParameterMap()
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameterMap()
I think something like this should work:ServletRequest request = (ServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); // the map contains keys as String and values as String [] Map params = request.getParameterMap();
-
3. Re: Request param acquire
kooudy Feb 11, 2008 6:22 AM (in response to kooudy)I have just discovered that:
1. redirect filter must be enabled to append parameters to URL
2. javax.faces.STATE_SAVING_METHOD must be set to client - according to BLOG example (when I tried to set to server, then it stops work)
It is required to save state on client? -
4. Re: Request param acquire
kooudy Feb 11, 2008 6:24 AM (in response to kooudy)sorry previous comment belongs to other thread
-
5. Re: Request param acquire
baspet Feb 11, 2008 6:46 AM (in response to kooudy)i use FacesContext.getCurrentInstance().getExternalContext().getRequestParameterValuesMap().get("paramName")
V.