[Seasar-user:10563] [Teeda Ajax] 1.0.11-RC2-SNAPSHOT doOnceNextのrenderJsがtrueの時,KumuのEventが登録できない

Junichi Kato [E-MAIL ADDRESS DELETED]
2007年 9月 17日 (月) 10:55:14 JST


加藤です.

> http://maven.seasar.org/maven2-snapshot/org/seasar/teeda/teeda-core/1.0.11-RC2-SNAPSHOT/teeda-core-1.0.11-RC2-20070914.105132-1.jar
> http://maven.seasar.org/maven2-snapshot/org/seasar/teeda/teeda-extension/1.0.11-RC2-SNAPSHOT/teeda-extension-1.0.11-RC2-20070914.105132-1.jar
> http://maven.seasar.org/maven2-snapshot/org/seasar/teeda/teeda-ajax/1.0.11-RC2-SNAPSHOT/teeda-ajax-1.0.11-RC2-20070914.105132-1.jar
> http://maven.seasar.org/maven2-snapshot/org/seasar/teeda/teeda-tiger/1.0.11-RC2-SNAPSHOT/teeda-tiger-1.0.11-RC2-20070914.105441-1.jar

にて,

<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>hogehoge</title>
<script language="JavaScript" src="../../js/teeda-ajax/kumu.js"></script>
<script language="JavaScript" src="../../js/teeda-ajax/event.js"></script>
<script language="JavaScript" src="../../js/teeda-ajax/ajax.js"></script>
<script language="JavaScript" type="text/javascript">
//<![CDATA[

	var clearOptions = function(select){
		var listcnt = select.length;
		for(var i = listcnt - 1; i >= 0; i--){
			select.options[i] = null;
		}
	};
	
	var combinationList = function(evt){
		 var elem = evt.target || evt.srcElement;
		 var value = elem.value;
	
		function register_registerArtistPaymentPage_ajaxGetBankBrunchList(res){
			var select = $i('bankBrunch');
			clearOptions(select);
			var i = 0;
			select.options[i] = new Option('選択してください',null);
			i++;
			res.map(function(v){
				select.options[i] = new Option(v.label,v.value);
				i++;
			});
		};
	  
		Kumu.Ajax.executeTeedaAjax(register_registerArtistPaymentPage_ajaxGetBankBrunchList, [value]);
	};

KumuEventConf = {
'change_bank' : combinationList
}
	
//]]> 
</script>
</head>

のような簡単なjavascriptをKumuEventConfで設定しています.

これはteeda-html-exampleをほぼそのままぱくったものです.
当初はちゃんと動作していいたのですが,

<input type="button" id="doOnceNext" value="next" te:renderJs="true"/>

で, te:renderJsをtrueにしたとたん動作しなくなりました.

レンダリングされたHTMLはこちらです.
そもそも,何か使い方に問題はありますでしょうか?

<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>hogehoge</title>
<script type="text/javascript" language="JavaScript" src="../../js/common.js" xml:space="preserve"></script>
<script type="text/javascript" language="JavaScript" src="../../js/teeda-ajax/kumu.js" xml:space="preserve"></script>
<script type="text/javascript" language="JavaScript" src="../../js/teeda-ajax/event.js" xml:space="preserve"></script>
<script type="text/javascript" language="JavaScript" src="../../js/teeda-ajax/ajax.js" xml:space="preserve"></script>
<script type="text/javascript" language="JavaScript" xml:space="preserve">
//

	var clearOptions = function(select){
		var listcnt = select.length;
		for(var i = listcnt - 1; i >= 0; i--){
			select.options[i] = null;
		}
	};
	
	var combinationList = function(evt){
		 var elem = evt.target || evt.srcElement;
		 var value = elem.value;
	
		function register_registerHogehogePaymentPage_ajaxGetBankBrunchList(res){
			var select = $i('bankBrunch');
			clearOptions(select);
			var i = 0;
			select.options[i] = new Option('選択してください',null);
			i++;
			res.map(function(v){
				select.options[i] = new Option(v.label,v.value);
				i++;
			});
		};
	  
		Kumu.Ajax.executeTeedaAjax(register_registerHogehogePaymentPage_ajaxGetBankBrunchList, [value]);
	};

KumuEventConf = {
'change_bank' : combinationList
}
	
// 
</script><link rel="stylesheet" href="../../css/site.css" type="text/css" media="all" />
<link rel="stylesheet" href="../../css/meta.css" type="text/css" media="all" />
<script language="JavaScript" type="text/javascript" src="/hogehoge-web/teedaExtension/org/seasar/teeda/ajax/js/kumu.js"></script>
<script language="JavaScript" type="text/javascript" src="/hogehoge-web/teedaExtension/org/seasar/teeda/ajax/js/event.js"></script>
<script language="JavaScript" type="text/javascript" src="/hogehoge-web/teedaExtension/org/seasar/teeda/ajax/js/disabled.js"></script>

<script language="JavaScript" type="text/javascript">
<!--
DisabledConf = {
 time : 50000,
 submitMessage : function() { alert('遷移中です'); }
}

//-->
</script>
</head>



Seasar-user メーリングリストの案内