[ 
http://issues.apache.org/jira/browse/MYFACES-1094?page=comments#action_12365276 
] 

Martin Marinschek commented on MYFACES-1094:
--------------------------------------------

Have you looked into the SVN-head sources?

There, this is properly resolved, see:

  if(javascriptLocation != null)
        {
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, javascriptLocation + "/prototype.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, javascriptLocation + "/effects.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, javascriptLocation + "/dragdrop.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, javascriptLocation + "/controls.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, javascriptLocation + "/myFaces.js");
        }
        else
        {
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, PrototypeResourceLoader.class, "prototype.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, PrototypeResourceLoader.class, "effects.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, PrototypeResourceLoader.class, "dragdrop.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, PrototypeResourceLoader.class, "controls.js");
            addResource.addJavaScriptAtPosition(context, 
AddResource.HEADER_BEGIN, InputSuggestAjaxRenderer.class, "myFaces.js");
        }

regards,

Martin

> inputSuggestAjax: missing javascript file MyFaces.js when specifying 
> attribute "javascriptLocation"
> ---------------------------------------------------------------------------------------------------
>
>          Key: MYFACES-1094
>          URL: http://issues.apache.org/jira/browse/MYFACES-1094
>      Project: MyFaces
>         Type: Bug
>   Components: Sandbox
>     Reporter: Haihua Luo

>
> when I specify the attribute "javascriptLocation" inside the tag 
> "inputSuggestAjax", and put all five necessary javascript files in the 
> specified location, however, it builds only four javascript files except 
> "MyFaces.js" in the <HEAD> tag in the generated html file, which causes a 
> "Ajax is undefined" javascript error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to