Strange,

When I try:
                                <div t:type="AjaxFormLoop" t:source="persons" 
t:value="person" >
                                        <tr>
                                                <td>${person.lastName}</td>
                                                <td>${person.firstName}</td>
                                        </tr>
                                        <tr>
                                                <td 
colspan="2">TEEEEEEEEEEEEEEEST</td>
                                        </tr>
                                </div>


I'll get output
<div id="...">
        <input ....></input>
        <tr>
                <td></td>
                ..
        </tr>
        <tr>
                <td></td>
        </tr>
</div>

Which is what you want if I understand correctly !

-----Original Message-----
From: wout86 [mailto:wouter.amerij...@gmail.com]
Sent: Wednesday 30 May 2012 09:45
To: users@tapestry.apache.org
Subject: [T5.2.6] AjaxFormLoop containing tr's rather than being a tr

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




Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is 
confidential and may contain information which is protected by intellectual 
property rights.
This information is intended for the exclusive use of the recipient(s) named 
above.
This e-mail does not constitute any binding relationship or offer toward any of 
the addressees.
If you are not one of the addressees , one of their employees or a proxy holder 
entitled to hand over this message to the addressee(s), any use of the 
information contained herein (e.g. reproduction, divulgation, communication or 
distribution,...) is prohibited.
If you have received this message in error, please notify the sender and 
destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be 
subject to data corruption, interception and unauthorized amendment, for which 
we accept no liability."

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

Reply via email to