[Seasar-user:8103] [Teeda] forEachのinputタグの処理で

山下 真里 [E-MAIL ADDRESS DELETED]
2007年 6月 6日 (水) 16:25:13 JST


$B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B

$B;32<(B $B??N$$G$9!#(B

Teeda 1.0.7$B$N(BforEach$B$rMxMQ$7!"2hLL>e$K%F!<%V%k$N0lMw$rI=<($7!"(B
$BBP>]$N%G!<%?$r:o=|$9$k%W%m%0%i%`$r:[E-MAIL ADDRESS DELETED]$7$F$*$j$^$9!#(B

$B2hLL>e$N%j%9%HI=<(8e!"2hLL>e$N(I"$B:o=|(I#$B%\%?%s$r2!$7!"$=$N8e!"(B
JavaScript$B$G(Bhidden$B$GBP>]$N%-!<$r%;%C%H$7!"(BPost$B=hM}$KF~$k$H!"=i2s$OI,$:!"(B
$B2<5-$N%(%i!<$,H/@8$7$^$9!#(B

====================================================================================
0
java.lang.ArrayIndexOutOfBoundsException: 0
  at org.seasar.teeda.extension.component.TForEach#processUpdates (TForEach.java#382)
  at javax.faces.component.ComponentUtil_#processAppropriatePhaseAction (ComponentUtil_.java
#51)
  at javax.faces.component.UIForm#processAppropriateAction (UIForm.java#85)
  at javax.faces.component.UIForm#processUpdates (UIForm.java#68)
  at javax.faces.component.UIComponentBase#processUpdates (UIComponentBase.java#447)
  at javax.faces.component.UIComponentBase#processUpdates (UIComponentBase.java#447)
  at javax.faces.component.UIViewRoot#processUpdates (UIViewRoot.java#110)
  at org.seasar.teeda.core.lifecycle.impl.UpdateModelValuesPhase#executePhase (UpdateModelVa
luesPhase.java#30)
  at org.seasar.teeda.core.lifecycle.AbstractPhase#execute (AbstractPhase.java#55)
  at org.seasar.teeda.core.lifecycle.LifecycleImpl#execute (LifecycleImpl.java#90)
====================================================================================

$B$=$N8e!"%V%i%&%6$NLa$k%\%?%s$GLa$j:o=|=hM}$r$9$k$[E-MAIL ADDRESS DELETED]>oF0:n$7$^$9!#(B
$B2?$,LdBj$G$3$N$h$&$J8=>]$,H/@8$7$F$$$k$+!"J,$j$+$M$^$7$?$N$G(B
$BEj9F$5$;$F$$$?$@$-$^$7$?!#(B

$B$*<j?t$r$*$+$1$7$^$9$,!"$4B8CN$NJ}$,$$$i$C$7$c$$$^$7$?$i!"(B
$B$465<x$*4j$$$G$-$J$$$G$7$g$&$+!)(B

$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B



=================== $B%(%i!<H/@8;~$N%H%l!<%9(B ========================================
DEBUG 2007-06-06 16:08:56,265 [http-8080-1] HOT deploy$B$r3+;O$7$^$9(B
DEBUG 2007-06-06 16:08:56,296 [http-8080-1] $B%/%i%9(B(net.mtog.ao.web.setting.StationEditPage[s
etting_stationEditPage])$B$N%3%s%]!<%M%s%HDj5A$rEPO?$7$^$9(B
DEBUG 2007-06-06 16:08:56,328 [http-8080-1] $B%/%i%9(B(net.mtog.ao.dao.YStationDao[yStationDao])
$B$N%3%s%]!<%M%s%HDj5A$rEPO?$7$^$9(B
DEBUG 2007-06-06 16:08:56,359 [http-8080-1] 0
java.lang.ArrayIndexOutOfBoundsException: 0
	at org.seasar.teeda.extension.component.TForEach.processUpdates(TForEach.java:382)
	at javax.faces.component.ComponentUtil_.processAppropriatePhaseAction(ComponentUtil_.java:5
1)
	at javax.faces.component.UIForm.processAppropriateAction(UIForm.java:85)
	at javax.faces.component.UIForm.processUpdates(UIForm.java:68)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:447)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:447)
	at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:110)
	at org.seasar.teeda.core.lifecycle.impl.UpdateModelValuesPhase.executePhase(UpdateModelValu
esPhase.java:30)
	at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:55)
	at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:92)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206
)
	at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:6
3)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206
)
	at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:
63)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206
)
	at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206
)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.j
ava:634)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
	at java.lang.Thread.run(Unknown Source)
DEBUG 2007-06-06 16:08:56,375 [http-8080-1] HOT deploy$B$r=*N;$7$^$7$?(B
DEBUG 2007-06-06 16:08:56,375 [http-8080-1] HOT deploy$B$r3+;O$7$^$9(B
DEBUG 2007-06-06 16:08:56,375 [http-8080-1] $B%/%i%9(B(net.mtog.ao.web.error.ErrorPage[error_err
orPage])$B$N%3%s%]!<%M%s%HDj5A$rEPO?$7$^$9(B
DEBUG 2007-06-06 16:08:56,390 [http-8080-1] HOT deploy$B$r=*N;$7$^$7$?(B

======================================================================================

================  html  ==============================================================
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://express.heartrails.com/api/express.js"></script>
<script type="text/javascript">
//<![CDATA[

function stationDel(yadoStationId) {

	document.getElementById("delstnId").value = yadoStationId;

}

// ]]>
</script>
</head>
<body >
<form id="Form">
<div><span id="allMessages"></span></div>
<span id="msg"></span>
<br />
<table border="1" width="600">
	<tr>
		<td>$BO)@~L>(B</td><td>$B1XL>(B</td><td>&nbsp;</td></tr>
<div id="stationItems">
	<tr>
		<td width="200"><span id="line">$B#J#REl3$F;K\@~(B</span></td>
		<td width="300"><span id="station">$[E-MAIL ADDRESS DELETED]:j1X(B</span></td>
		<td width="100">
		<input type="button" value="$B:o=|(B" id="doDelete" onClick="mock()" /></td></tr>
</div>
</table>
<br />
</form>
</body></html>

====================================================================================


============================  Page $B0lItH4?h!!(B=====================================
	private YStation[] stationItems;

	public YStation[] getStationItems() {
		return stationItems;
	}

	public void setStationItems(YStation[] stationItems) {
		this.stationItems = stationItems;
	}


	public String getDoDeleteOnClick() {

		String script = "stationDel(" + getId() + ")";

		return script;
	}

	public String doDelete() {
		System.out.println("##### CLICKED INDEX " + getDelstnId()  + " #####");
		YStation yStation = new YStation();
		yStation.setYadoStationId(getDelstnId());
		getYStationDao().delete(yStation);
	    return null;
	}
====================================================================================





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