Reply To: Error on AJAX POST: Required value was null

Splash Forums PrettyFaces Users Error on AJAX POST: Required value was null Reply To: Error on AJAX POST: Required value was null

#24330

From the stack trace it looks like FullAjaxExceptionHandler starts to render the error page from within the AJAX request. As the error page is the result of an expired view, the view scoped beans are recreated (as you already assumed). The error page contains a form for which the view handler tries to create the post back URL. This is the point where the error occurs. PrettyFaces thinks that this is a standard rendering phase and tries to build the post back URL which fails because of the missing value from the view scoped bean.

Would it be possible to create a request scoped bean that holds the value of the path parameter? IMHO using a request scoped bean for such a parameter makes sense, because the requested URL (containing the parameter) is in a sense also request scoped.