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

Koichi Kobayashi [E-MAIL ADDRESS DELETED]
2011年 11月 4日 (金) 03:48:07 JST


$B>.NS(B (koichik) $B$G$9!%(B

> >        <img src="../../img/batu2.png" alt="$B:o=|(B" border="0" onclick="deleteForm();/></a>

$B$r(B onclick="deleteForm(this)" $B$H$9$l$P(B <img> $BMWAG$r(B
$BEO$;$k$N$G!$$=$3$+$i?FMWAG$G$"$k(B <a> $BMWAG$N(B href $[E-MAIL ADDRESS DELETED]$r(B
$B<hF@$9$k$H$+!%(B
href $B$r07$&$N$,LLE]$J$i(B <input type="hidden" /> $B$JMWAG$r(B
$B9T$4$H$K;}$C$?J}$,4JC1$+$b$7$l$^$;$s!%(B


On Thu, 3 Nov 2011 14:50:54 +0900, $BKRG7Fb(B $BN4;K(B <[E-MAIL ADDRESS DELETED]> wrote:

> 
> $B>.NSMM(B
>  
> $B$*@$OC$K$J$C$F$*$j$^$9!#KRG7Fb$G$9!#(B
> $B$42sEz$"$j$,$H$&$4$6$$$^$9!#(B
>  
> >$B%j%s%/$O(B form $B$r%5%V%_%C%H$9$k$?$a$K;H$o$l$F$$$k$@$1$N$h$&$J$N$G!"(B
> >$B%j%s%/$N%Q%i%a!<%?$H$OJL$K(B form $B$K(B
> > 
> ><input type="hidden" id="selectedSiteInfoIndex" />
> > 
> >$B$N$h$&$J$b$N$,I,MW$G$9!#(B
> ># $B%Z!<%8%/%i%9$K$bF1$8%W%m%Q%F%#$,I,MW$G$9!#(B
> $[E-MAIL ADDRESS DELETED]$7$^$7$?!#(B
>  
> $B!d$=$7$F(B deleteForm() $B$NCf$G%j%s%/$N%Q%i%a!<%?$+$i<hF@$7$?CM$r(B
> $B!d$3$N(B <input> $BMWAG$[E-MAIL ADDRESS DELETED]$9$k$h$&$K$7$F$/$@$5$$!#(B
> $B$9$_$^$;$s!#$I$N$h$&$K%j%s%/$N%Q%i%a!<%?$r<hF@$9$k$N$G$7$g$&$+!)!)!)(B
> JavaScrpt$B$G$=$N$h$&$J%a%=%C%I$,$"$k$N$7$g$&$+!)(B
> $B;d$,D4$Y$F$?$d$jJ}$G$O%j%s%/$N%Q%i%a!<%?$O(Bwindow.location.search$B$r(B
> $B;HMQ$7$F<hF@$G$-$^$9$,!"$=$N>l9g8=:_3+$$$F$$$k#U#R#L$N%Q%i%a!<%?(B
> $B$r<hF@$7$F$7$^$$$^$9!#$=$N$?$a0U?^$7$?%Q%i%a!<%?$G$O$J$$$G$9!#(B
> $BB>$K$d$jJ}$,$"$j$^$7$?$i$465<x$*4j$$$7$^$9!#(B
>  
> $B0J>e$G$9!#(B
> $B$h$m$7$/$*4j$$$7$^$9!#(B
>  
> 
> Date: Mon, 31 Oct 2011 18:01:33 +0900
> From: [E-MAIL ADDRESS DELETED]
> To: [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:21105] Re: $B!Z$4<ALd![(BForEach$BFb$N(BA$B%?%0$G%$%s%G%C%/%9CM$rEO$7$F(BPage$B%/%i%9$G=hM}$7$?$$(B
> 
> $B>.NS(B (koichik) $B$G$9!%(B
>  
> > $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$3$l$@$1$@$H<B:]$K$d$C$F$k=hM}$,$o$+$i$J$$$N$G$9$,!"(B
> siteInfoIndex $B$O$I$3$+$[E-MAIL ADDRESS DELETED]$7$F$$$^$9$+!)(B
>  
> $B%j%s%/$O(B form $B$r%5%V%_%C%H$9$k$?$a$K;H$o$l$F$$$k$@$1$N$h$&$J$N$G!"(B
> $B%j%s%/$N%Q%i%a!<%?$H$OJL$K(B form $B$K(B
>  
> <input type="hidden" id="selectedSiteInfoIndex" />
>  
> $B$N$h$&$J$b$N$,I,MW$G$9!#(B
> # $B%Z!<%8%/%i%9$K$bF1$8%W%m%Q%F%#$,I,MW$G$9!#(B
>  
> $B$=$7$F(B deleteForm() $B$NCf$G%j%s%/$N%Q%i%a!<%?$+$i<hF@$7$?CM$r(B
> $B$3$N(B <input> $BMWAG$[E-MAIL ADDRESS DELETED]$9$k$h$&$K$7$F$/$@$5$$!#$=$7$F!"(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;
> >  }
>  
> $B$G;2>H$9$k$N$O(B selectedSiteInfoIndex $B$K$7$F$/$@$5$$!#(B
>  
> siteInfoIndex $B$O(B forEach $B$G7+$jJV$5$l$k(B DTO $B$N%W%m%Q%F%#$G!"(B
> $B$=$l$H$OJL$K(B selectedSiteInfoIndex $B$N$h$&$J%W%m%Q%F%#(B ($B$3$l$O(B
> DTO $B$N%W%m%Q%F%#$G$O$"$j$^$;$s(B) $B$,I,MW$H$$$&$3$H$KN10U$7$F$/$@$5$$!#(B
>  
>  
> Date: Sun, 30 Oct 2011 21:54:06 +0900
> From: $BKRG7Fb(B $BN4;K(B <[E-MAIL ADDRESS DELETED]>
> Subject: [Seasar-user:21103] $B!Z$4<ALd![(BForEach$BFb$N(BA$B%?%0$G%$%s%G%C%/%9CM$rEO$7$F(BPage$B%/%i%9$G=hM}$7$?$$(B
>  
> > 
> > $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
> >   		 	   		  
>  
> --
> {
>   name: "Koichi Kobayashi",
>   mail: "[E-MAIL ADDRESS DELETED]",
>   blog: "http://d.hatena.ne.jp/koichik/",
>   twitter: "@koichik"
>  }
>  
> 
> _______________________________________________ Seasar-user mailing list [E-MAIL ADDRESS DELETED] https://ml.seasar.org/mailman/listinfo/seasar-user 		 	   		  


-- 
{
  name: "Koichi Kobayashi",
  mail: "[E-MAIL ADDRESS DELETED]",
  blog: "http://d.hatena.ne.jp/koichik/",
  twitter: "@koichik"
}



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