I’ve been using Pretty Faces for about a week and I have to say it really makes the JSF experience much much better – thank you.
One issue that I’ve run into however is that rewritten URLs containing multiple query parameters write the literal ampersand character in the HTML response as opposed to the encoded “&” entity. I noticed this because it was flagged by the HTML Validator plug-in for Firefox.
My attempts to set up a rewrite rule for this situation haven’t been successful so I’m wondering if I’m doing something wrong here. The rewrite rule is taking a single ‘&’ character and converting it to ‘&’
I’ve also written a custom Processor but that is also yielding the same result. It appears that the rewrite Processor is being called twice, and the second call is the cause of the problem. What am I doing wrong here?
I’m using PrettyFaces 3.2.0 with JSF 1.2 on IBM WAS 7. I just realized some of the entities in my original post were replaced with the ampersand by the forum. The substitute values should have been ‘& amp;’ without the added space.
No luck – the raw ampersands were still in the output HTML. I was able to get a simple re-write rule working though. Unfortunately this doesn’t take into account any other XML/HTML entities embedded in the URL, but it’s sufficient for now.