[Seasar-user:5223] Re: [S2JSF] リストサイズの取得と一覧で項目ID連番生成についての質問
Shinpei Ohtani
[E-MAIL ADDRESS DELETED]
2006年 11月 21日 (火) 11:25:25 JST
$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 メーリングリストの案内