Hi,

this looks like the extensionsFilter mapping is not fully correct.

Make sure you have a mapping "/faces/*" to extensionsFilter.

Hope this helps, if not please post your web.xml.

Umesh Kanitkar wrote:
>Hello:
>Javascript files get  included in the resultng html page. However I get
>the error "'Ajax' is undefined". Apparently the object that javascript
>is trying to create is not being found in the included files. I think
>it is not able to execute "new Ajax.MyFacesAutocompleter" correctly.
>Can you provide some insight into this.
>
>For example one generated path is:
>
>/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/controls.js
>
>If I look under
<TOMCAT_HOME>/webapps/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/controls.js

The scripts are includet in the jars and served by the extensionFilter.
So you don't find the scripts at this location.

Regards,
  Volker

>
>So perhaps it is natural that I am having a problem with an undefined
>object. What should be the correct path and how do I communicate to the
>JSF/AJAX system so that it generates the correct path.
>
>-Umesh
>
>The generated code for inclusing java files looks as below:
>
><script
src="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/prototype.js"
type="text/javascript"><!--
>
>//--></script>
><script
src="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/effects.js"
type="text/javascript"><!--
>
>//--></script>
><script
src="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/dragdrop.js"
type="text/javascript"><!--
>
>//--></script>
><script
src="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/controls.js"
type="text/javascript"><!--
>
>//--></script>
<<script
src="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/myFaces.js"
type="text/javascript"><!--
>
>//--></script>
><link rel="stylesheet"
href="/Test/faces/myFacesExtensionResource/inputsuggestajax.InputSuggestAjaxRenderer/11302665/defaultTheme.css"
type="text/css" /></head>

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to