[Seasar-user:4727] Re: [S2JSF]s:forEach内のf:paramでは計算式の値は渡せない?
takemura
[E-MAIL ADDRESS DELETED]
2006年 10月 1日 (日) 23:03:58 JST
takemura$B$G$9!#(B
> $B?dB,$G$9$,!"(BforEach$B$G;XDj$9$k%3%s%]!<%M%s%H$N%9%3!<%W$,(B
> Request$B$K$J$C$F$$$k$N$G$O$J$$$G$7$g$&$+(B?
$B$O$$!#%9%3!<%W$O%j%/%(%9%H$G$7$?!#!J(BAction$B$G(Bgetter$B$G8F$P$l$kCM!K(B
$B%;%C%7%g%s$N(BDTO$B$K$7$?$H$3$m!"$&$^$/F0:n$OCW$7$^$7$?!#(B
$B$7$+$7!"$J$<%;%C%7%g%s%9%3!<%W$G$J$1$l$P$$$1$J$$$N$+$,$o$+$j$^$;$s!#(B
<span m:inject="s:forEach"
m:items="#{testList}"
m:var="e" m:varIndex="i">
<a m:action="#{testAction.doMethod1}">
<span m:value="#{i}" />
<span m:inject="f:param" m:name="name"
m:value="#{i * hogeValue}"/>$B!!-!(B
</a><br/>
</span>
$B-!$N(BhogeValue$B$,%j%/%(%9%H%9%3!<%W$NCM$@$H$@$a$N$h$&$G$9!#(B
$B-!$NItJ,$,(B
m:value="#{i * 5}"
m:value="#{i}"
$B$OJ?5$$G$9!#(B
$B$o$+$i$J$$$N$O(B
m:value="#{i * hogeValue}"
$B$G%j%/%(%9%H%9%3!<%W$N(BhogeValue$B$G$b$-$A$s$H:[E-MAIL ADDRESS DELETED]$5$l$k(BHTML$B$K$OCM$,(B
$BF~$j$^$9!#(B
HTML$BJ8(B
<a href="#" onclick="clear_myForm();
var f = document.forms['myForm'];
f['myForm:__link_clicked__'].value = 'myForm:_id11_1:_id13';
f['name'].value = '5';$B!!"+!!$3$3(B
if (f.onsubmit) { f.onsubmit(); } f.submit();clear_myForm(); return
false;">
1
</a><br />
$B$=$N8e%O%$%Q!<%j%s%/%/%j%C%/;~$N(BAction$B$N%3!<%k$G%G%Q%C%/$G$_$F$b(B
$B%j%/%(%9%H%Q%i%a!<%?$K(Bname=5$B$,Mh$F$$$k$H$3$m$^$G$O3NG'(B
$B$G$-$k$N$G$9$,(BAction$B$N(BsetName$B!J(Bint name$B!K(B $B;~$K$O(B0$B$K$J$C$F$7$^$&$N$,IT;W5D$G$9!#(B
S2JSF$B$C$F%j%/%(%9%H%Q%i%a!<%?$NJQ?tL>$N%;%C%?!<$KCM$,%;%C%H$5$l$kF0:n$r(B
$B$9$k$N$@$H2r<a$7$F$^$9$,(B
$B!J<B:](B hoge.html?name=5$B$G%3!<%k$9$k$H(BsetName$B$K$O(B5$B$,%;%C%H$5$l$k$N$O3NG'$7$F$^$9!K(B
$B$J$<$3$N>l9g$O%;%C%7%g%s%9%3!<%W$G$J$$$HF0:n$,$&$^$/$$$+$J$$$N$G$7$g$&$+!)(B(JSF$B$N;EMM!)!)(B)
$B!J=PMh$k$3$H$J$i%;%C%7%g%s%9%3!<%W$O;H$$$?$/$J$$!&!&!&!K(B
----- Original Message -----
From: <[E-MAIL ADDRESS DELETED]>
To: <[E-MAIL ADDRESS DELETED]>
Sent: Friday, September 29, 2006 4:02 PM
Subject: [Seasar-user:4723] Re:[S2JSF]s:forEach$BFb$N(Bf:param$B$G$O7W;;<0$NCM$OEO$;$J$$!)(B
> $BJFNS$G$9!#(B
>
> From: "takemura" <[E-MAIL ADDRESS DELETED]>
> Sent: Friday, September 29, 2006 1:04 AM
>
>> $B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B
>> takemura $B$H?=$7$^$9!#(B
>>
>>
>> s:forEach$B$G2s$9(BS2JSF$B$N(Bf:param$B$N(Bvalue$B$K(B
>> <span m:inject="f:param" m:name="offset" m:value="#{i *
>> pagerViewHelper.limit}"/>
>> $B$N$h$&$J=q$-J}$r$9$k$[E-MAIL ADDRESS DELETED]@.$5$l$k(BHTML$B$[E-MAIL ADDRESS DELETED]$7$/M}A[$I$&$j$NCM$,=PMh!"$^$?%G%P%C%/(B
>>
>>
>> $B%3%s%=!<%k$N%j%/%(%9%H%Q%i%a!<%?$r8+$F$b(Boffset$B$[E-MAIL ADDRESS DELETED]$7$/EO$5$l$F$$$k$N$K(BAction$B$N(B
>>
>> $B%;%C%?!<;~(B(void setOffset(int))$B$K$O$J$<$+(B0$B$K$J$C$F$7$^$$$^$9!#(B
>>
>> $B8GDjE*$J(B
>> <span m:inject="f:param" m:name="offset"
>> m:value="#{pagerViewHelper.limit}"/>
>> $B$d(B
>> <span m:inject="f:param" m:name="offset" m:value="5">
>>
>> $B$N$h$&$J=q$-J}$@$H(BAction$B$[E-MAIL ADDRESS DELETED]$7$/EO$5$l$^$9!#(B
>>
>>
>> value$B$K7W;;<0$rCM$rEO$9$N$O;EMM>eL5M}$J$N$G$7$g$&$+!)(B
>
> $B?dB,$G$9$,!"(BforEach$B$G;XDj$9$k%3%s%]!<%M%s%H$N%9%3!<%W$,(B
> Request$B$K$J$C$F$$$k$N$G$O$J$$$G$7$g$&$+(B?
> dicon$B$NDj5A$b65$($FD:$1$^$9$G$7$g$&$+(B?
>
> ---
> $BJFNS(B $[E-MAIL ADDRESS DELETED]@(B
> [E-MAIL ADDRESS DELETED]
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://www.seasar.org/mailman/listinfo/seasar-user
>
>
Seasar-user メーリングリストの案内