Reply To: Rewrite Rules when using with ADF/Webcenter

Splash Forums PrettyFaces Users Rewrite Rules when using with ADF/Webcenter Reply To: Rewrite Rules when using with ADF/Webcenter



Hi Lincoln ,

I tried to integrate Rewrite with my sample app and using following rule.

        return ConfigurationBuilder.begin()

so my URL becomes . which is fine .

But if i remove all the params and hit enter , the URL becomes :

Rewrite adds many params in the URL .How can i stop this ?

Other issue is If I have a page like “New Page” with a space in the middle , i get the following error

java.lang.IllegalArgumentException: [/prettyRewrite/faces/New Page?p=New+Page&p=New+Page&p=New+Page&p=New+Page&_afrWindowId=llz5etwak_21&_afrWindowMode=0&_afrLoop=16457928559785&_adf.ctrl-state=llz5etwak_29] is not a valid URL fragment. Consider encoding relevant portions of the URL with [class org.ocpsoft.urlbuilder.util.Encoder]
	at org.ocpsoft.urlbuilder.AddressBuilder.create(
	at org.ocpsoft.rewrite.servlet.impl.HttpRewriteWrappedResponse.encodeURL(
	at javax.servlet.http.HttpServletResponseWrapper.encodeURL(
	at com.sun.faces.context.ExternalContextImpl.encodeActionURL(

Full stack trace is attached .

I tried by replacing space with %20 but still no luck . Kindly suggest .