[Seasar-user:5222] [S2JSF] リストサイズの取得と一覧で項目ID連番生成についての質問
LiYi
[E-MAIL ADDRESS DELETED]
2006年 11月 21日 (火) 11:01:40 JST
$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:2
24)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava: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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:2
25)
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.j
ava:269)
org.seasar.jsf.processor.TagProcessorImpl.processBodyTag(TagProcessorImpl.ja
va: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(S2Container
Filter.java:63)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF
ilter.java:122)$B!!!!$=$N$d$jJ}$,4V0c$$$^$9$+!)(BID$BO"HV$N$d$jJ}$r65$($F$*4j$$$7(B
$B$^$9!#0J>e$G$9!#(B
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20061121/f82a2f88/attachment.html
Seasar-user メーリングリストの案内