Re: ADF, PrettyFaces and a persistent query param

Splash Forums PrettyFaces Users ADF, PrettyFaces and a persistent query param Re: ADF, PrettyFaces and a persistent query param

#21583

I think you should concentrate on what happens within ONE request. The first request doesn’t contain the query parameter in the request URL, so this one isn’t interesting to analyze. The ones that contain the _adf.ctrl-state parameter in the request URL are interesting.

Check the request that contains the query parameter in the request URL. The request URL should look like “/about-us/welcome/?_adf.ctrl-state=some_value“. All links in the rendered result page of this request should contain the same query parameter as supplied in the request (at least if I understood the concept of the parameter correctly). You could check this with Firebug or something like that.

If the value of the query parameter in the rendered links differ from the query parameter from the request URL the hole concept breaks. In this case you should modify some of the code executed during the request and read the value of the query parameter using HttpServletRequest.getParameter(). It would be interesting to see which value it contains. The one from the query parameter or the one rendered into the links.

Perhaps it would be a good idea to build a simple sample application to simplify debugging. I don’t know much about ADF. Its commercial, correct? So I guess you cannot supply us with a simple demo app reproducing this?

Christian