[Seasar-user:5225] Re: [S2JSF] リストサイズの取得と一覧で項目ID連番生成についての質問

Shinpei Ohtani [E-MAIL ADDRESS DELETED]
2006年 11月 21日 (火) 12:03:38 JST


$B$*$*$?$K$G$9!#(B

> > > $B-"!!(BHTML$B$N0lMw$r:n$k>l9g!"9`L\(BID$B$rO"HV$[E-MAIL ADDRESS DELETED]@.$7$?$$$G$9!#(B
> > >       <span m:inject="s:forEach" m:items="#{addDto.hello2}" m:var="e"
> m:varIndex="i">
> > >            <input id="id_#{i}" type="text" m:value="#{e}"/>
> > >       </span>
> > JSF$B$N@)8B$G1Q?t;z$H(B-$B!"(B_$B0J30$O;HMQ$9$k$3$H$O=PMh$^$;$s!#(B
>
> $B!|!!$9$_$^$;$s!"@[E-MAIL ADDRESS DELETED]$@$H;W$$$^$9!#(B
>
> $B!!0lMw$K!"(Bid_0 , id_1 $B$N$h$&$JO"HV$[E-MAIL ADDRESS DELETED]@.$9$k$?$a!"!V(Bid="id_#{i}" $B!W$N$h$&$J=q$-J}$G$G$-$k(B
> $B$H;W$$$^$9$,!"<B:]$O$G$-$^$;$s!#(B

id$B$O!"(Bid_#{i}$B$N$h$&$K5-=R$O=PMh$^$;$s!#(B
$B1Q?t;z$H(B-$B!"(B_$B0J30$O;HMQ$9$k$3$H$O=PMh$^$;$s!#(B
$B$3$l$O(BJSF$B$N;EMM$G$9!#(B


06/11/21 $B$K(B LiYi<[E-MAIL ADDRESS DELETED]> $B$5$s$O=q$-$^$7$?(B:
>
>
> $BM{$G$9!#(B
>
> > Dto$B$K(Bgetter$B%a%=%C%I$r:n$l$PBg>fIW$@$H;W$$$^$9!#(B
> >
> > public int getSize() {
> >   return hello2.size();
> > }
> $B!|!!J,$+$j$^$7$?!"$=$&$7$+$G$-$J$$$_$?$$$G$9$M!#(B
>
>
> > > $B-"!!(BHTML$B$N0lMw$r:n$k>l9g!"9`L\(BID$B$rO"HV$[E-MAIL ADDRESS DELETED]@.$7$?$$$G$9!#(B
> > >       <span m:inject="s:forEach" m:items="#{addDto.hello2}" m:var="e"
> m:varIndex="i">
> > >            <input id="id_#{i}" type="text" m:value="#{e}"/>
> > >       </span>
> > JSF$B$N@)8B$G1Q?t;z$H(B-$B!"(B_$B0J30$O;HMQ$9$k$3$H$O=PMh$^$;$s!#(B
>
> $B!|!!$9$_$^$;$s!"@[E-MAIL ADDRESS DELETED]$@$H;W$$$^$9!#(B
>
> $B!!0lMw$K!"(Bid_0 , id_1 $B$N$h$&$JO"HV$[E-MAIL ADDRESS DELETED]@.$9$k$?$a!"!V(Bid="id_#{i}" $B!W$N$h$&$J=q$-J}$G$G$-$k(B
> $B$H;W$$$^$9$,!"<B:]$O$G$-$^$;$s!#(B
>
>
> $B0J>e$G$9!#(B
>
>
>
>
> ----- Original Message -----
> From: "Shinpei Ohtani" <[E-MAIL ADDRESS DELETED]>
> To: <[E-MAIL ADDRESS DELETED]>
> Sent: Tuesday, November 21, 2006 11:25 AM
> Subject: [Seasar-user:5223] Re:[S2JSF] $B%j%9%H%5%$%:$N<hF@$H0lMw$G9`L\(BID$BO"[E-MAIL ADDRESS DELETED]@.$K$D$$$F$N<ALd(B
>
> > $B$*$*$?$K$G$9!#(B
> >
> > > $B-!!!%j%9%H%5%$%:$N<hF@$K$D$$$F(B
> > > $B!!Nc$($P!"(BAddDTO$B$K(B
> > > $B!!!!!!!!(Bprivate List<String> hello2 = new ArrayList<String>();
> > > $B!!!!!!$rDj5A$7$F!"$=$7$F!"(BHTML$B$K!"(B
> > > $B!!!!(B<span m:value="#{addDto.hello2[0]}"/>$B!"(B<span
> > > m:value="#{addDto.hello2[1]}"/>
> > > $B!!!!$N$h$&$J!"%j%9%H$NMWAG$r%"%/%;%9$G$-$^$9$,!"(B
> > > $B!!!!%j%9%H$N%5%$%:$r<hF@$7$?$$>l9g!"(B<span m:value="#{addDto.hello2.size}"/>$B$N$h$&$J(B
> > > $B!!!!=q$-J}$,BLL\$G$9!#%5%$%:$r<hF@$7$?$$>l9g$N=q$-J}$r65$($F$*4j$$$7$^$9!#(B
> >
> > Dto$B$K(Bgetter$B%a%=%C%I$r:n$l$PBg>fIW$@$H;W$$$^$9!#(B
> >
> > public int getSize() {
> >   return hello2.size();
> > }
> >
> > HTML$B$G$O2<5-$N$h$&$K=q$-$^$9!#(B
> > <span m:value="#{addDto.size}"/>
> >
> >
> > > $B-"!!(BHTML$B$N0lMw$r:n$k>l9g!"9`L\(BID$B$rO"HV$[E-MAIL ADDRESS DELETED]@.$7$?$$$G$9!#(B
> >
> > JSF$B$N@)8B$G1Q?t;z$H(B-$B!"(B_$B0J30$O;HMQ$9$k$3$H$O=PMh$^$;$s!#(B
> >
> > 06/11/21 $B$K(B LiYi<[E-MAIL ADDRESS DELETED]> $B$5$s$O=q$-$^$7$?(B:
> > >
> > >
> > > $BM{$G$9!#(B
> > >
> > > $B-!!!%j%9%H%5%$%:$N<hF@$K$D$$$F(B
> > > $B!!Nc$($P!"(BAddDTO$B$K(B
> > > $B!!!!!!!!(Bprivate List<String> hello2 = new ArrayList<String>();
> > > $B!!!!!!$rDj5A$7$F!"$=$7$F!"(BHTML$B$K!"(B
> > > $B!!!!(B<span m:value="#{addDto.hello2[0]}"/>$B!"(B<span
> > > m:value="#{addDto.hello2[1]}"/>
> > > $B!!!!$N$h$&$J!"%j%9%H$NMWAG$r%"%/%;%9$G$-$^$9$,!"(B
> > > $B!!!!%j%9%H$N%5%$%:$r<hF@$7$?$$>l9g!"(B<span m:value="#{addDto.hello2.size}"/>$B$N$h$&$J(B
> > > $B!!!!=q$-J}$,BLL\$G$9!#%5%$%:$r<hF@$7$?$$>l9g$N=q$-J}$r65$($F$*4j$$$7$^$9!#(B
> > >
> > >
> > > $B-"!!(BHTML$B$N0lMw$r:n$k>l9g!"9`L\(BID$B$rO"HV$[E-MAIL ADDRESS DELETED]@.$7$?$$$G$9!#(B
> > >       <span m:inject="s:forEach" m:items="#{addDto.hello2}" m:var="e"
> > > m:varIndex="i">
> > >            <input id="id_#{i}" type="text" m:value="#{e}"/>
> > >       </span>
> > >
> > > $B!!!!$7$+$7!"2hLLI=<($9$k;~!"0J2<%(%i!<$,H/@8$7$^$7$?!'(B
> > > java.lang.IllegalArgumentException: Subsequent
> character is
> > > invalid
> > >
> javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:666)
> > >
> javax.faces.component.UIComponentBase.setId(UIComponentBase.java:144)
> > >
> javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:375)
> > >
> javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:382)
> > >
> javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:261)
> > >
> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:138)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:224)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:196)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:196)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:196)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.InsertProcessor.process(InsertProcessor.java:83)
> > >
> org.seasar.jsf.processor.InsertProcessor.process(InsertProcessor.java:73)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:93)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:93)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:93)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:93)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:225)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:217)
> > >
> org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:93)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:269)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.processBodyTag(TagProcessorImpl.java:243)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:213)
> > >
> org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:196)
> > >
> org.seasar.jsf.processor.ViewProcessor.process(ViewProcessor.java:174)
> > >
> org.seasar.jsf.processor.ViewProcessor.process(ViewProcessor.java:172)
> > >
> org.seasar.jsf.runtime.ViewRendererImpl.renderView(ViewRendererImpl.java:102)
> > >
> org.seasar.jsf.application.S2ViewHandler.renderView(S2ViewHandler.java:123)
> > >
> org.seasar.jsf.lifecycle.LifecycleImpl.render(LifecycleImpl.java:190)
> > >
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:87)
> > >
> examples.jsf.util.RequestDumpFilter.doFilter(RequestDumpFilter.java:66)
> > >
> org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62)
> > >
> org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63)
> > >
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > $B!!!!$=$N$d$jJ}$,4V0c$$$^$9$+!)(BID$BO"HV$N$d$jJ}$r65$($F$*4j$$$7$^$9!#(B
> > > $B0J>e$G$9!#(B
> > >
> > > _______________________________________________
> > > Seasar-user mailing list
> > > [E-MAIL ADDRESS DELETED]
> > > https://ml.seasar.org/mailman/listinfo/seasar-user
> > >
> > >
> > >
> >
> >
> > --
> > =============================
> > Shinpei Ohtani
> > [E-MAIL ADDRESS DELETED]
> > =============================
> >
>
>  ________________________________
>
>
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
> >
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
>
>


-- 
=============================
Shinpei Ohtani
[E-MAIL ADDRESS DELETED]
=============================



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