$BJFNSMM!"(B<br>$B%l%9$,BgJQCY$/$J$C$F$7$^$C$F$9$_$^$;$s!#(B<br><br>$BK\7o!"0J2<$N$h$&$J%5%s%W%k%3!<%I$G3NG'$G$-$k$+$H;W$$$^$9!#(B<br>$B$h$m$7$/$*4j$$$7$^$9!#(B<br><br>$B"#(BHTML<br><script language="JavaScript" type="text/javascript"><br>//<![CDATA[<br><br> function m04_hogePage_ajaxGetAAAOptions(res){<br>
alert(res[0].label);<br> var select = $i('aaa');<br> for(var i=0; i<res.length; i++) {<br> alert(res[i].label);<br> select.options[i+1] = new Option(res[i].label,res[i].value);<br> }<br>
}<br><br> function m04_hogePage_ajaxGetBBBOptions(res){<br> alert(res[0].label);<br> var select = $i('bbb');<br> for(var i=0; i<res.length; i++) {<br> alert(res[i].label);<br> select.options[i+1] = new Option(res[i].label,res[i].value);<br>
}<br> }<br><br> function doajax() {<br> var p = {ccc:'1'};<br> Kumu.Ajax.executeTeedaAjax(m04_hogePage_ajaxGetAAAOptions, p);<br> //Kumu.Ajax.executeTeedaAjax(m04_hogePage_ajaxGetAAAOptions, {ccc:'1'});<br>
Kumu.Ajax.executeTeedaAjax(m04_hogePage_ajaxGetBBBOptions, p);<br> //Kumu.Ajax.executeTeedaAjax(m04_hogePage_ajaxGetBBBOptions, {ccc:'1'});<br> }<br><br>//]]><br></script><br></head><body><br>
<span id="fuga">$B$U$,(B</span><br><form id="hogeForm"><br><input type="submit" id="doAction"/><br><input type="button" value="ajax" onclick="doajax()"/><br>
<br><select id="aaa"><br><option>$BA*Br$7$F$/$@$5$$(B</option><br></select><br><br><select id="bbb"><br><option>$BA*Br$7$F$/$@$5$$(B</option><br></select><br><br><br></form><br>
</body><br></html><br><br>$B"#(BPage$B%/%i%9(B<br>public class HogePage {<br> <br> private static final Log log = LogFactory.getLog(HogePage.class);<br> <br> @PageScope<br> public BigDecimal fuga;<br> public String aaa;<br>
public String bbb;<br> public String ccc;<br> <br> <br> public Class initialize() {<br> <br> log.debug("init:" + fuga);<br> <br> fuga = new BigDecimal("11.2");<br>
<br> return null;<br> }<br> <br> public Class prerender() {<br> <br> log.debug("prerender:" + fuga);<br> <br> return null;<br> }<br> <br> public Class doAction() {<br>
<br> fuga = new BigDecimal("22.3");<br> <br> log.debug("doAction:" + fuga);<br> return null;<br> }<br> <br> public String ajaxGetAAAOptions() {<br> log.debug("aaaOptions called: " + ccc);<br>
return "[{label:'aaaHoge', value:'1'}, {label:'aaaFoo', value:'2'}]";<br> }<br><br> public String ajaxGetBBBOptions() {<br> log.debug("bbbOptions called: " + ccc);<br>
return "[{label:'bbbHoge', value:'1'}, {label:'bbbFoo', value:'2'}]";<br> }<br> <br> public String getLayout() {<br> return null;<br> }<br> <br>}<br>
<br># $BJL7o$N8!>Z$b4^$^$l$F$$$?$N$GL5BL$J%W%m%Q%F%#$bF~$C$F$$$^$9$,!#!#(B<br><br>$B$h$m$7$/$*4j$$$7$^$9!#(B<br><br><div class="gmail_quote">2008/2/13 <<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
$BJFNS$G$9!#(B<br>
<br>
> Kumu.Ajax.executeTeedaAjax $B$rJ#?t2s8F$S=P$9$H$-!"0z?t$KEO$9%*%V%8%'%/%H$,F1$8(B<br>
$B$@$H(B<br>
> 1$B$DL\$N%a%=%C%I$,2?2s$b8F$P$l$k$H$$$&8=>]$,5/$3$j$^$7$?!#(B<br>
<br>
$BJs9p$"$j$,$H$&$4$6$$$^$9!#(B<br>
<br>
> $B$3$N$h$&$K$9$k$H!"(Bfuga1$B$,(B3$B2s<B9T$5$l$^$7$?!#(B<br>
<br>
1$BE@!"3NG'$5$;$F$/$@$5$$!#(B<br>
$B$3$N(B3$B2s<B9T$5$l$?(B fuga1 $B$bG0$N$?$a!"8+$;$FD:$1$^$9$+!)(B<br>
<br>
$B$h$m$7$/$*$M$,$$$7$^$9!#(B<br>
<div><div></div><div class="Wj3C7c"><br>
----- Original Message -----<br>
From: "Mitsutaka Sato" <<a href="mailto:miztaka@gmail.com">miztaka@gmail.com</a>><br>
Sent: Wednesday, February 13, 2008 6:39 PM<br>
<br>
> $B:4F#$H?=$7$^$9!#(B<br>
> $B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B<br>
><br>
> Kumu.Ajax.executeTeedaAjax $B$rJ#?t2s8F$S=P$9$H$-!"0z?t$KEO$9%*%V%8%'%/%H$,F1$8(B<br>
$B$@$H(B<br>
> 1$B$DL\$N%a%=%C%I$,2?2s$b8F$P$l$k$H$$$&8=>]$,5/$3$j$^$7$?!#(B<br>
><br>
> =================<br>
> var opts = {foo: '1', bar: '2'};<br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga1, opts);<br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga2, opts);<br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga3, opts);<br>
> =================<br>
><br>
> $B$3$N$h$&$K$9$k$H!"(Bfuga1$B$,(B3$B2s<B9T$5$l$^$7$?!#(B<br>
><br>
><br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga1, {foo: '1', bar: '2'});<br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga2, {foo: '1', bar: '2'});<br>
> Kumu.Ajax.executeTeedaAjax(hogePage_ajaxFuga3, {foo: '1', bar: '2'});<br>
><br>
> $B$3$N$h$&$K$7$?$H$3$m!"$A$c$s$H(Bfuga1,fuga2,fuga3$B$,<B9T$5$l$^$7$?!#(B<br>
><br>
> $BIT6q9g$J$N$+;EMM$J$N$+$o$+$j$^$;$s$G$7$?$,$R$H$^$:$4Js9p$$$?$7$^$9!#(B<br>
> teeda-ajax-1.0.11-SP2 $B$G$9!#(B<br>
<br>
</div></div>---<br>
$BJFNS(B $B@5L@(B<br>
<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a><br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div><br>