[Seasar-user:21103] 【ご質問】ForEach内のAタグでインデックス値を渡してPageクラスで処理したい

牧之内 隆史 [E-MAIL ADDRESS DELETED]
2011年 10月 30日 (日) 21:54:06 JST


$BKRG7Fb$H?=$7$^$9!#(B
 
$B$9$_$^$;$s!#<+J,$J$j$KD4$Y$F9T$C$F$$$?$s$G$9$,!"(B
$B$I$&$7$F$bJ,$+$i$J$$$?$a$4<ALd$5$;$F$$$?$@$-$^$9!#(B
 
$B$d$j$?$$$3$H$O(BForEach$BJ8$G0lMwI=<($7$F$"$k3F9T$K:o=|%j%s%/$rI=<($5$;!"(B
$B:o=|%j%s%/$r%/%j%C%/$7$?$i!"$=$N9T$r:o=|$7$?$$$H;W$C$F$*$j$^$9!#(B
$B8=>u$O$&$^$/0lMw$N%$%s%G%C%/%9$r<hF@$G$-$:!"(BPage$B%/%i%9B&$K%$%s%G%C%/%9$NCM$rEO$9$3$H$,$G$-$^$;$s!#(B
$BA[Dj$H$O0c$&9T$,:o=|$5$l$F$7$^$$$^$9!#(B
$B2a5n$K$bF1$8$h$&$J0U8+$,$"$j!";29M$K$7$F9T$C$F$_$?$s$G$9$,$&$^$/$G$-$^$;$s$G$7$?!#(B
$B$I$J$?$+J,$+$kJ}$465<x$NJ}$h$m$7$/$*4j$$CW$7$^$9!#(B
$B"(2a5n$N;w$?$h$&$J<ALd!!"M!!(Bhttp://ml.seasar.org/archives/seasar-user/2007-November/011557.html
 
$B!c2hLL%$%a!<%8!d(B
1$B9TL\!!!!:o=|%j%s%/(B
2$B9TL\!!!!:o=|%j%s%/(B
3$B9TL\!!!!:o=|%j%s%/(B
 
$B",(B2$B9TL\$N:o=|%j%s%/2!2<(B
 
1$B9TL\!!!!:o=|%j%s%/(B
3$B9TL\!!!!:o=|%j%s%/(B
 
$B!c(Bhtml$B%=!<%9!d!A(BA$B%?%0ItJ,0lItH4?h!A(B
       <a id="goNewSiteEntry"
       href="newSiteEntry.html?siteInfoIndex=1" >$B!!"+!!-!(Bhref$B$G%$%s%G%C%/%9$N%Q%i%a!<%?$rEO$;$J$$!*!)(B
       <img src="../../img/batu2.png" alt="$B:o=|(B" border="0" onclick="deleteForm();/></a>
 
$B!c(BJavaScript$B!d!A(BonClick$B=hM}0lItH4?h!A(Bfunction deleteForm(){
 document.getElementById("doDelete").click();$B!!"+!!-"(BA$B%?%0$G$O(BPage$B%/%i%9$N%a%=%C%I$r8F$S=P$;$J$$$?$a(BonClick$B$r;HMQ$7$F(BPage$B%/%i%9$r8F$S=P$7$F$$$k!#(B
}
 
$B!c(BPage$B%/%i%9!d!A(BdoXXX$B%a%=%C%IItJ,0lItH4?h!A(B
 public String doDelete(){
  siteInfoItems.remove(siteInfoIndex);$B!!"+!!-#%$%s%G%C%/%9$r<hF@$7$F!"$=$N9T$@$1:o=|$7$?$$!#%$%s%G%C%/%9$,$&$^$/EO$l$P:o=|$G$-$k$O$:!#(B
  return null;
 }

$B0J>e$G$9!#(B
$B$h$m$7$/$*4j$$CW$7$^$9!#(B
  		 	   		  
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20111030/1576d7b4/attachment.html>


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