1

I want to reference a javascript file named "primefaces_locales.js" into my template.xhtml

The javascript file is into "/myApp/src/main/webapp/resources/js/primefaces_locales.js"

I've wrote this, but it doesn't work (I can see that the js file is not found when I run the application):

<h:head>
        <script language="javascript"
            src="../resources/js/primefaces_locales.js" />
....
Sinda MOKADDEM
  • 796
  • 2
  • 12
  • 35

1 Answers1

0

Thank you for the reply... But actually the solution was the best explained here: get .css file from a sub folder since I don't use themes/libraries mentioned in the mkyong link.

Community
  • 1
  • 1
Sinda MOKADDEM
  • 796
  • 2
  • 12
  • 35