开发者

URL getRequestParameterMap not working

开发者 https://www.devze.com 2022-12-30 17:08 出处:网络
I\'m using IceFaces 1.8.2 and trying to get a parameter from the URL using: ((HttpServletRequest) FacesContext.getCurrentInstance()

I'm using IceFaces 1.8.2 and trying to get a parameter from the URL using:

((HttpServletRequest) FacesContext.getCurrentInstance()
     .getExternalContext().getRequest()).getParameter(name);

This works fine on the inital request. However, when I do a开发者_如何学编程 partialSubmit on a component, it stops working. I'm assuming that its to do with how requests are processed when partial submits are done.

Is there a workaround? At the moment, I'm having to

((HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext()
   .getRequest()).getQueryString();

and manually pass the query string.

Thanks.


  • why don't you just ignore partial submits. For the sake of bookmarking partial submits shouldn't matter
  • for pretty, bookmarkable urls you can take a look at PrettyFaces
0

精彩评论

暂无评论...
验证码 换一张
取 消