Hi,

I'm wondering whether it is possible to have an AjaxFormLoop containing
multiple tr elements?

For instance, this works:

<table>
 <tr><th>H1</th>...</tr>
 <*tr *t:type="AjaxFormLoop" t:source="src" t:value="el"
t:encoder="elEncoder" t:show="show">
  <t:submitnotifier>
    <td>E1 ... </td>
    ...
  </t:submitnotifier>
  <p:addrow>
     <td>....<t:addrowlink ... />...</td>
     ...
  </p:addrow>
 </&lt;b>tr*>
</table>

But I'd like to do this, which doesn't seem to work:
<table>
 <tr><th>H1</th>...</tr>
 <*div *t:type="AjaxFormLoop" t:source="src" t:value="el"
t:encoder="elEncoder" t:show="show">
  <t:submitnotifier>
   <*tr*>
    <td>E1 ... </td>
    ...
   </tr>
   <tr>
    ...
   </&lt;b>tr*>
  </t:submitnotifier>
  <p:addrow>
   <tr>
     <td>....<t:addrowlink ... />...</td>
     ...
   </tr>
  </p:addrow>
 </&lt;b>div*>
</table>

The first piece of code generates HTML like:
<table>
 <tbody>
  <tr>...</tr>
  <tr id="fragment">...</tr>
  <tr id="fragment_0">...</tr>
  ...
  <tr id="rowInjector_1379c9e61c9" class="t-forminjector">...</tr>
  <tr id="rowInjector_1379c9e8768" class="t-forminjector">...</tr>
  <tr id="rowInjector" class="t-forminjector">
   <td> # Add Row </td>
  </tr>
 </tbody>
</table>

The latter generates the following HTML:
<div id="fragment">...</div>
<div id="fragment_0">...</div>
<div id="fragment_1">...</div>
<div id="fragment_2">...</div>
<div id="fragment_3">...</div>
<div id="rowInjector_1379c99b613" class="t-forminjector">...</div>
<div id="rowInjector" class="t-forminjector"></div>
<table>
 <tbody>
  <tr>...</tr>
  <tr>...</tr>
  <tr>...</tr>
  <tr>...</tr>
  <tr>...</tr>
  <tr>...</tr>
  <tr>...</tr>
 </tbody>
</table>

Which seems to have the AjaxFormLoop escaping the table .

Anyone having any ideas on this?

Thanks!


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-6-AjaxFormLoop-containing-tr-s-rather-than-being-a-tr-tp5713516.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to