Skip to content Skip to sidebar Skip to footer

Can't Access Javascript File In Jsf Component

I have a jsf component that must access to a javascript file, i added this whith outputScript as in the code bellow, I get an error in the generated html, and the javascript can't

Solution 1:

Those files have to be placed in the /resources subfolder. So, you should have the following in the public webcontent:

  • /resources/js/DateValidation.js
  • /resources/js/messages.js

Unrelated to the concrete problem, your composite component approach is pretty awkward. I'd suggest to check out tag wiki: https://stackoverflow.com/tags/composite-component/info

Post a Comment for "Can't Access Javascript File In Jsf Component"