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
精彩评论