JQMとJSFを使用しています。ページで、ah:commondbutton をトリガーした後、アクションが文字列 null を再実行すると、ページが更新され、スクリプトが機能しなくなります。Ready 関数とモバイル pageinit 関数にブレークポイントを設定しましたが、どれも機能しません。jquerymobile ライブラリを削除すると動作します。これについての任意のアイデア..
<script src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).on('mobileinit', function() {
$.mobile.defaultPageTransition = 'slide';
$.mobile.hashListeningEnabled = false;
});
//]]>
</script>
<script src="js/jquery.mobile-1.2.0.js"></script>
$(document).ready(function(){
//some codes here
});
<div data-role="page" id="page1" >
<script type="text/javascript">
$('#page1').live('pageinit', function() {
$("#getNewValuesLinkId").bind('click', function() {
$("#getnewValues").trigger("click");//this jsf button
});
});
</div>
jsf h:commonbutton 処理して null 文字列 "" を返します。ページが更新され、スクリプトが機能しなくなります。