Resolution: Won't Fix
Affects Version/s: None
Fix Version/s: None
As per the API documentation of ViewHandler (http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/application/ViewHandler.html), createView method is NOT supposed throw NPE when viewId is null.
But the jsftemplating does not seem to be compliant with the specification. It throws NPE when createView(facesContext, null) is called.
The other view handler implementation in com.sun.faces:jsf-impl works fine with null viewId. So, it is evident that jsftemplating should also follow the specification.
I have attached a simple application for reproducing the issue. The application bundles jsftemplating.jar and has a Servlet that invokes viewHandler.createView(context, null); When the application is deployed and servlet is accessed, it results in NPE. (You can deploy to GlassFish and access http://localhost:8080/hellojsf/JSFTestServlet).
I have also attached the exception stack trace.
|Status||Open [ 1 ]||Closed [ 6 ]|
|Resolution||Won't Fix [ 2 ]|