You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Haihua Luo (JIRA)" <de...@myfaces.apache.org> on 2006/02/05 12:40:03 UTC

[jira] Created: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

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


[jira] Commented: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
    [ 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


[jira] Closed: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1094?page=all ]
     
Martin Marinschek closed MYFACES-1094:
--------------------------------------

    Fix Version: Nightly
     Resolution: Fixed

Hi Luo,

that will be done when the ExtensionsFilter serves out the resources. So you would see log-statements there.

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
>     Assignee: Martin Marinschek
>      Fix For: Nightly

>
> 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


[jira] Commented: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

Posted by "Haihua Luo (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1094?page=comments#action_12365282 ] 

Haihua Luo commented on MYFACES-1094:
-------------------------------------

I have just downloaded the source codes in the myfaces release 1.1.1. So it seems really resolved. But one more add-on: should it be tested whether all the .js exist in the specified location? If not, it should throw a file not found exception. 

> 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
>     Assignee: Martin Marinschek

>
> 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


[jira] Commented: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1094?page=comments#action_12365212 ] 

Volker Weber commented on MYFACES-1094:
---------------------------------------

The reason for "Ajax is undefined" javascript error can't be the missing MyFaces.js. 
There must be something wrong with prototype.js, missing or dublicate include?

> 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


[jira] Commented: (MYFACES-1094) inputSuggestAjax: missing javascript file MyFaces.js when specifying attribute "javascriptLocation"

Posted by "Haihua Luo (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1094?page=comments#action_12365247 ] 

Haihua Luo commented on MYFACES-1094:
-------------------------------------

o, sorry, I have mixed the error. The error should be "Ajax.MyFacesAutocompleter is not a constructor". Anyway, it is the myFaces.js that is missing, since I have looked deep into the source code inside org\apache\myfaces\custom\inputsuggestajax\InputSuggestAjaxRenderer.java (line 107), and have found that the file is missing there.



> 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