开发者

URL getRequestParameterMap not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜