Hai,<br><br>Itried to add some rows to the ****Items <br>like&nbsp;&nbsp; <a href="http://ml.seasar.org/archives/seasar-user/2008-December/016543.html">http://ml.seasar.org/archives/seasar-user/2008-December/016543.html</a><br><br><br>
addrow.html<br><br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<br><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br>
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; xmlns:te=&quot;<br><a href="http://www.seasar.org/teeda/extension">http://www.seasar.org/teeda/extension</a>&quot; lang=&quot;ja&quot; xml:lang=&quot;ja&quot;&gt;<br>
&lt;head&gt;<br>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br>&lt;script type=&quot;text/javascript&quot; src=&quot;../../js/jquery.js&quot;&gt;&lt;/script&gt;<br>&lt;script type=&quot;text/javascript&quot;&gt;<br>
function addRow() {<br>var rowStr = &#39;&lt;tr&gt;&#39;;<br>rowStr += &#39;&lt;td&gt;&lt;span id=&quot;rowno&quot;&gt;&lt;/span&gt;&lt;/td&gt;&#39;;<br>rowStr += &#39;&lt;td&gt;&lt;input id=&quot;userId&quot; type=&quot;text&quot; /&gt;&lt;/td&gt;&#39;;<br>
rowStr += &#39;&lt;td&gt;&lt;input type=&quot;hidden&quot; id=&quot;rowno-1&quot; /&gt;&lt;/td&gt;&#39;;<br>rowStr += &#39;&lt;/tr&gt;&#39;;<br>$(&#39;#userItems&#39;).append(rowStr);<br>&nbsp;// $BL@:Y$N(BINDEX$B$r?6$jD>$9(B<br>resetIndex();<br>
}<br><br>// $BL@:Y$N(BINDEX$B$r?6$jD>$9(B<br>function resetIndex(){<br>var nameVal = &#39;includeChildBody:form:userItems:&#39;;<br>$(&#39;#userItems tr&#39;).each(function(idx, obj){<br>// $B9THV9f$r?6$jD>$9(B<br>$(obj).find(&#39;#rowno&#39;).text(&#39;&#39; + (idx + 1));<br>
// name$BB0@-$N(Bindex$B$r?6$j$J$*$9(B<br>$(obj).find(&#39;#rowno&#39;).attr(&#39;name&#39;, nameVal + idx + &#39;:rowno&#39;);<br>$(obj).find(&#39;#userId&#39;).attr(&#39;name&#39;, nameVal + idx + &#39;:userId&#39;);<br>$(obj).find(&#39;#rowno-1&#39;).attr(&#39;name&#39;, nameVal + idx + &#39;:rowno-1&#39;);<br>
});<br>}<br>&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;span id=&quot;allMessages&quot;/&gt;<br>&lt;form id=&quot;form&quot;&gt;<br>&lt;table&gt;<br>&lt;thead&gt;<br>&lt;th&gt;$B%f!<%6(BID&lt;/th&gt;<br>&lt;/thead&gt;<br>
&lt;tbody id=&quot;userItems&quot;&gt;<br>&lt;tr&gt;<br>&lt;td&gt;&lt;span id=&quot;rowno&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;input id=&quot;userId&quot; type=&quot;text&quot; value=&quot;&quot; /&gt;&lt;/td&gt;<br>
&lt;input type=&quot;hidden&quot; id=&quot;rowno-1&quot;/&gt;<br>&lt;/tr&gt;<br>&lt;/tbody&gt;<br>&lt;/table&gt;<br>&lt;input type=&quot;button&quot; onclick=&quot;addRow()&quot; value=&quot;ADD ROW&quot;/&gt;<br>&lt;input type=&quot;button&quot; id=&quot;doTest&quot; value=&quot;TEST&quot;/&gt;<br>
&lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br><br>AddrowPage.java<br><br>package testproject.web.test;<br><br>import java.sql.Timestamp;<br>import java.util.ArrayList;<br>import java.util.Date;<br>import java.util.List;<br>
import org.seasar.teeda.extension.annotation.scope.SubapplicationScope;<br>import testproject.dto.UserDto;<br><br>public class AddrowPage {<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; public List&lt;UserDto&gt; userItems;<br>&nbsp;&nbsp;&nbsp; public int userIndex;<br>
&nbsp;&nbsp;&nbsp; public String rowno;<br>&nbsp;&nbsp;&nbsp; public String userId;<br>//&nbsp;&nbsp;&nbsp; public Class getLayout() {<br>//&nbsp;&nbsp;&nbsp; return null;<br>//&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public Class doTest() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;doTest&nbsp; size=&quot; + userItems.size());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public Class initialize() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Date today = new Date();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; userItems = new ArrayList&lt;UserDto&gt;();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UserDto user1 = new UserDto();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user1.timesp = new Timestamp(today.getTime());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user1.rowno = &quot;1&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user1.userId = &quot;A001&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user1.userName = &quot;USER A&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; userItems.add(user1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UserDto user2 = new UserDto();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user2.timesp = new Timestamp(today.getTime());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user2.rowno = &quot;2&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user2.userId = &quot;B001&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; user2.userName = &quot;USER B&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; userItems.add(user2);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; public Class prerender() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>When i click the ADDROW button i can create row in javascript,after clicking the TEST button,i checked the size of the Items,<br>Its only 2..How can i get the size including the rows created in javascrip?<br>
<br><br>Please give me some solution to solve this problem.<br><br>Thanks in advance,<br>$B%H%^%9(B<br><br><br>