Re: URL rewriting with PrettyFaces, URLMapping and pretty:link

Splash Forums PrettyFaces Users URL rewriting with PrettyFaces, URLMapping and pretty:link Re: URL rewriting with PrettyFaces, URLMapping and pretty:link

#22905

Actually, I found out why this error would occur. It seems that the form Action URL is somehow null, which would explain the nullpointer exception. Your configuration looks fine, but I have no idea how this would occur.

org.ocpsoft.rewrite.servlet.impl.HttpRewriteWrappedResponse.encodeURL(HttpRewriteWrappedResponse.java:264)
at com.sun.faces.context.ExternalContextImpl.encodeActionURL(ExternalContextImpl.java:514)
at javax.faces.context.ExternalContextWrapper.encodeActionURL(ExternalContextWrapper.java:104)

// the form action URL is null by the time it gets to the Rewrite configuration.

at com.sun.faces.renderkit.html_basic.FormRenderer.getActionStr(FormRenderer.java:235)
at com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:135)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:276)

Do you think you could debug this and see exactly what is going on? Or upload a maven project or arquillian test-case that reproduces this?

Thanks,

Lincoln