[Seasar-user:2018] S2JSF でボタン押下時にパラメータを指定する方法他

armisticeday-1977@sisnet.ne.jp armisticeday-1977
2005年 5月 24日 (火) 22:26:47 JST


$B$O$8$a$^$7$F!"Kv5H$H?=$7$^$9!#(B

$B8=:_!"(BS2JSF$B$rJY6/$7$F$$$^$9!#(B
$B$=$3$G!"(B2$BE@<ALd$5$;$F$/$@$5$$!#(B

$B-!%\%?%s2!2<;~$K%Q%i%a!<%?$r;XDj$9$kJ}K!(B
$B-"(BAction$B%/%i%9$G<hF@$7$?%$%s%9%?%s%9$r%;%C%7%g%s$K%"%H%j%S%e!<%H$9$kJ}K!(B

$B-!$G$9$,!"0J2<$N$h$&$J2hLLA+0\$r$9$k$b$N$r:n$C$F$$$^$9!#(B

$B8!:w!J0lMw!K"*(B $B>\:Y(B $B"*(B $BJQ99(B

$B2hLLA+0\$K$O%\%?%s2!2<;~$K!"<g%-!<$r%Q%i%a!<%?$H$7$F(BAction$B%/%i%9$KEO$=$&$H9M$($F$$$^$9!#(B
$B8!:w!J0lMw!K2hLL$+$i>\:Y2hLL$G$O!"0J2<$N$h$&$K(BForEach$B%?%0$N;R%?%0$G%Q%i%a!<%?$K<g%-!<$r;XDj$9$k$H>\:Y2hLL$rI=<($9$k$?$a$N(BAction$B%/%i%9$G(BhogeCode$B$,<hF@$G$-$k$N$G;W$C$?$H$*$j$KF0$+$9$3$H$,$G$-$F$$$^$9!#(B

<span m:inject="s:forEach" m:items="#{hogeList}" m:var="dto" m:varIndex="i">
    <input type="button" value="$B>\:Y(B" m:action="#{hogeListAction.detail}">
        <span m:inject="f:param" m:name="hogeCode" m:value="#{dto.hogeCode}"/>
    </input>
</span>

$B$7$+$7!">\:Y2hLL$+$iJQ992hLL$G$O0J2<$N$h$&$J5-=R$GJQ992hLL$rI=<($9$k$?$a$N(BAction$B%/%i%9$G(BhogeCode$B$,<hF@$9$k$3$H$,$G$-$^$;$s!#(B

<input type="button" value="$BJQ99(B" m:action="#{hogeDetailAction.edit}">
    <span m:inject="f:param" m:name="hogeCode" m:value="#{hoegDto.hogeCode}"/>
</input>

$B%\%?%s2!2<;~$K$3$N$h$&$J5-=R$G%Q%i%a!<%?$rEO$9$3$H$O$G$-$J$$$N$G$7$g$&$+!)(B
ForEach$B%?%0$N;R%?%0$G$N$_M-8z$G$7$g$&$+!)(B
$B$3$l$r%\%?%s$G$O$J$/%"%s%+!<%?%0$G0J2<$N$h$&$K5-=R$7$?>l9g$O!"%Q%i%a!<%?$r<hF@$9$k$3$H$,$G$-$^$9!#(B

<a m:action="#{hogeDetailAction.edit}">$BJQ99(B
    <span m:inject="f:param" m:name="hogeCode" m:value="#{hoegDto.hogeCode}"/>
</a>


$B<!$K-"$G$9!#(B

Action$B%/%i%9$G0lMw$N$?$a$N(BhogeList$B$r<hF@$7$?$H$7$^$9!#(B
$B$3$N(BhogeList$B$r%j%/%(%9%H$G$O$J$/!"%;%C%7%g%s$K%"%H%j%S%e!<%H$7$?$$$N$G$9$,$I$N$h$&$K$9$l$P$h$$$G$7$g$&$+!)(B

$B:G8e$K$J$j$^$7$?$,!"4D6-$O0J2<$NDL$j$G$9!#(B

JDK    1.4.2_08
Tomcat 5.0.30
S2     2.2.9
S2JSF  1.0.2

$B4pK\E*$J$3$H$+$b$7$l$^$;$s$,!"$465<x$/$@$5$$!#(B
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B


-----------------------------------------
$BKv5H!!7r(B
mail:[E-MAIL ADDRESS DELETED]
-----------------------------------------



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