Well if the html that I have specified is illegal then I will have to modify it and move the form outside of the <tr> and yes this would solve the issue.
Unfortunately for me only the table header should be in the form, so if I put form around entire table it will submit a lot more data then it really needs to (plus all of the table columns are using the same list as columns are dynamic) Still it looks like I have no choice :) Thanks On Tue, Jun 3, 2014 at 1:32 AM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > That example was T5.4. Here's T5.3: > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formsinaloop > > On 3 Jun 2014, at 9:29 am, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > > > Hi Boris, > > > > I still think the HTML looks wrong. Stuff is getting moved about by the > browser because it was declared in between a row and a cell, which isn't > legal. I'm pretty sure table content has to be inside cells. > > > > You can see Zone, Form, and Table working together in the following > example. The example doesn't have a Loop inside a Form, but perhaps you > could strip the example down, get it working, then try adding your Loop? > > > > > http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/formsinaloop > > > > Cheers, > > > > Geoff > > > > On 3 Jun 2014, at 7:44 am, Boris Horvat <horvat.z.bo...@gmail.com> > wrote: > > > >> Id is there as I have mentioned above. The actually html that is > generated > >> for the example above is and to me it looks like form is not properly > >> positioned in the table. Am I wrong? > >> > >> Thanks > >> > >> Before refresh! > >> > >> <div class="t-zone tapestry-zone" id="zone"> > >> <div class="" style="display: none;"> > >> <input > >> > value="0l3Pd9zAj3I6qxABtW5NMGczHjE=:H4sIAAAAAAAAAFvzloG1XIZBKiknMTk7Kb9C3yM1MackI7gksaS02ConP7+guIhBL78oXS+xIDE5I1WvJLEgtbikqNJULzm/KDUnMwlI5xbk56XmlRTr+QDVq5jq+p+8pslQfZKJgaGigMqGG0Y+Wfs5bfvlhcQZ7keS4UFAeaAUyIhUt6L83GAQL8U5JxOoJCwxpzRVd/qhKx0MCn+ZGBh9GLiTERIlDEI+WYllifo5iXnp+sElRZl56dYVBSUMgrqGRgYWhuaGFsaG5pYmQHa5AoMcdjcDHQkWBbrbFK+7kxKLU/Uck4CCicklbpmpOSkqwaklpQWqoYe5H4oe/wN1Xn5eSVF+jl9ibmohQx0DK8g5HDA7iHKFI6muCCjKT04tLg4uTcrNLC7OzM87vC7FJO3bvHO0SAomnwrSNN3FVtsTYzgoBFjQo8PMzNyYiIAA6eUoYeCCCcQbENYE0sOD300gJXzkONvcxNKUHGcbDqyzQQQ5zjaim7NJTYFmBgIfLOKW9NhCUqASgwIOwzPzsotBeaIEaIUL0VYAdYFzUglmvvLP7Jj0T6o9D5zTOSAFkWcKPJtzIWwEAGhib//hBQAA" > >> name="t:formdata" type="hidden"> > >> </div> > >> [key[-1208171831794208],value[true], > >> key[-1208171831796673],value[true], key[-1208171831797495],value[false], > >> key[-1208171831798317],value[true]] > >> <a id="linksubmit" href="#"> > >> refresh > >> </a> > >> <table> > >> <tbody> > >> <tr> > >> <td></td> > >> * <form onsubmit="javascript:return > >> Tapestry.waitForPage(event);" action="/healthstatus.form" method="post" > >> id="form" class="t-prevent-submission"></form>* > >> <td> > >> <input checked="checked" id="checkbox" name="checkbox" > >> type="checkbox"><img id="checkbox_icon" class="t-error-icon" alt="" > >> src="/assets/d539589c9facbc5d/core/spacer.gif" style="display: none;"> > >> </td> > >> <td> > >> <input checked="checked" id="checkbox_0" name="checkbox_0" > >> type="checkbox"><img id="checkbox_0_icon" class="t-error-icon" alt="" > >> src="/assets/d539589c9facbc5d/core/spacer.gif" style="display: none;"> > >> </td> > >> <td> > >> <input id="checkbox_1" name="checkbox_1" > >> type="checkbox"><img id="checkbox_1_icon" class="t-error-icon" alt="" > >> src="/assets/d539589c9facbc5d/core/spacer.gif" style="display: none;"> > >> </td> > >> <td> > >> <input checked="checked" id="checkbox_2" name="checkbox_2" > >> type="checkbox"><img id="checkbox_2_icon" class="t-error-icon" alt="" > >> src="/assets/d539589c9facbc5d/core/spacer.gif" style="display: none;"> > >> </td> > >> </tr> > >> </tbody> > >> </table> > >> </div> > >> > >> After Refresh! > >> > >> <div class="t-zone tapestry-zone" id="zone" style=""> > >> <div class="" style="display: none;"> > >> <input > >> > value="OHPu1s/F1j43AgG7qrgl2qJCnwQ=:H4sIAAAAAAAAAFvzloG1XIZBKiknMTk7Kb9C3yM1MackI7gksaS02ConP7+guIhBL78oXS+xIDE5I1WvJLEgtbikqNJULzm/KDUnMwlI5xbk56XmlRTr+QDVq5jq+p+8pslQfZKJgaGigMqGG0Y+Wfs5bfvlhcQZ7keS4UFAeaAUyIhUt6L83GAQL8U5JxOoJCwxpzRVd/qhKx0MCn+ZGBh9GLiTERIlDEI+WYllifo5iXnp+sElRZl56dYVBSUMgrqGRgYWhuaGFsaG5pYmQHa5AoMcdjcDHQkWBbrbFK+7kxKLU/Uck4CCicklbpmpOSkqwaklpQWqoYe5H4oe/wN1Xn5eSVF+jl9ibmohQx0DK8g5HDA7iHKFI6muCCjKT04tLg4uTcrNLC7OzM87vC7FJO3bvHO0SAomnwrSNN3FVtsTYzgoBFjQo8PMzNyYiIAA6eUoYeCCCcQbENYE0sOD300gJXzkONvcxNKUHGcbDqyzQQQ5zjaim7NJTYFmBgIfLOKW9NhCUqASgwIOwzPzsotBeaIEaIUL0VYAdYFzUglmvvLP7Jj0T6o9D5zTOSAFkWcKPJtLIGyMNzFJTDVJSjVIMTExTwMA0VBQt+8FAAA=" > >> name="t:formdata" type="hidden"> > >> </div> > >> [key[-1208171831794208],value[true], > >> key[-1208171831796673],value[true], key[-1208171831797495],value[false], > >> key[-1208171831798317],value[false]] > >> <a id="linksubmit_44ae4be0d447f" href="#"> > >> refresh > >> </a> > >> <table xmlns="http://www.w3.org/1999/xhtml"> > >> <tbody> > >> <tr> > >> <td></td> > >> * <form action="/healthstatus.form" method="post" > >> id="form_44ae4be0d447f" class="t-prevent-submission"></form>* > >> <td> > >> <input checked="checked" id="checkbox_44ae4be0d447f" > >> name="checkbox" type="checkbox"><img id="checkbox_44ae4be0d447f_icon" > >> class="t-error-icon" alt="" > src="/assets/d539589c9facbc5d/core/spacer.gif" > >> style="display: none;"> > >> </td> > >> <td> > >> <input checked="checked" id="checkbox_44ae4be0d447f_0" > >> name="checkbox_0" type="checkbox"><img > id="checkbox_44ae4be0d447f_0_icon" > >> class="t-error-icon" alt="" > src="/assets/d539589c9facbc5d/core/spacer.gif" > >> style="display: none;"> > >> </td> > >> <td> > >> <input id="checkbox_44ae4be0d447f_1" name="checkbox_1" > >> type="checkbox"><img id="checkbox_44ae4be0d447f_1_icon" > >> class="t-error-icon" alt="" > src="/assets/d539589c9facbc5d/core/spacer.gif" > >> style="display: none;"> > >> </td> > >> <td> > >> <input id="checkbox_44ae4be0d447f_2" name="checkbox_2" > >> type="checkbox"><img id="checkbox_44ae4be0d447f_2_icon" > >> class="t-error-icon" alt="" > src="/assets/d539589c9facbc5d/core/spacer.gif" > >> style="display: none;"> > >> </td> > >> </tr> > >> </tbody> > >> </table> > >> </div> > >> > >> > >> On Mon, Jun 2, 2014 at 1:56 PM, Thiago H de Paula Figueiredo < > >> thiag...@gmail.com> wrote: > >> > >>> On Sun, 01 Jun 2014 13:02:33 -0300, Boris Horvat < > horvat.z.bo...@gmail.com> > >>> wrote: > >>> > >>> Well from what I can see, it is not possible to put form in the middle > of > >>>> the table, so that means I will have to put it around the table. > However > >>>> for me this is a bit tricky cause inside I have a lot of loop > iteration > >>>> for the same source, hence when the form is submitted those loops > will try > >>>> to > >>>> populate the same source. > >>>> > >>> > >>> Loop nor Form check whether they're inside a <table> or anything like > >>> that. Your problem is elsewhere. In addition, you didn't set an HTML > id in > >>> your zone: <t:zone t:id="zone">. t:id isn't (HTML) id. Try <t:zone > >>> t:id="zone" id="zone">. Geoff just warned you you're generating invalid > >>> HTML. > >>> > >>> > >>> -- > >>> Thiago H. de Paula Figueiredo > >>> Tapestry, Java and Hibernate consultant and developer > >>> http://machina.com.br > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>> > >>> > >> > >> > >> -- > >> Sincerely > >> *Boris Horvat* > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Sincerely *Boris Horvat*