StreamingAddResource.addInlineScriptAtPosition throws NPE
---------------------------------------------------------

                 Key: TOMAHAWK-940
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-940
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: ExtensionsFilter
    Affects Versions: 1.1.5-SNAPSHOT
         Environment: - 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
            Reporter: Marko Asplund


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to