Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.5-SNAPSHOT
-
None
-
None
-
- Oracle JDeveloper 10.1.3.2.0
- OC4J 10.1.3.1.1 (embedded)
- JSF RI 1.1_01 and MyFaces Core 1.1.5
Description
When I run the following code with the StreamingAddResource
final String viewId = "/jsp/reportLoad.jspx";
FacesContext facesContext = FacesContext.getCurrentInstance();
ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
String actionUrl = viewHandler.getActionURL(facesContext, viewId);
String javaScriptText = "alert('ehlo');";
AddResource addResource = AddResourceFactory.getInstance(facesContext);
addResource.addInlineScriptAtPosition(facesContext, AddResource.HEADER_BEGIN, javaScriptText);
I get an NPE. This doesn't happen with the default AddResource implementation. Same thing happens with JSF RI and MyFaces Core.