サンプル jsf アプリケーションを作成し、jquery を使用しようとしています。jquery.js ファイルはどのディレクトリに配置する必要がありますか? web-inf? ソース?.js ファイルをダウンロードしましたが、動作していないようです。私はそれがどこにあるべきかわかりません。
googleapis を指すようにコードを更新しましたが、まだ機能しません。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js">
$(document).ready(function(){
$("#p1").mouseenter(function(){
alert("You entered p1!");
});
});
</script>
<p id="p1">Enter this paragraph.</p>
</h:body>