Hello all, I'm currently working on a page on which I have a nested Contrib:Table component and it works not as expected. Now I'm not sure if I am doing something wrong, or that this is happening because of the nesting..can anyone help me?
The .html file has two tables that use the Contrib:Table component. 'serializedItemsTable' is nested in 'tableSerialized' tableSerialized has a source called invoice.serializedProducts, which in turn contains a java.util.List serializedItems. The source for the second table is components.tableSerialized.tableRow.serialItems I know that the source invoice.serializedProducts contains 1 object. The components.tableSerialized.tableRow.serialItems contains 4 objects. The generated html contains 4 x 4 times the Block serialNumberColumnValue. I would really appreciate any help on this... I have placed the code below. Kind regards, Bianca .html file <table jwcid="tableSerialized"> <span jwcid="manufacturingPartNumberColumnValue"> <table> <tr> <td><span jwcid="checkboxNS"/></td> <td> <b>MFG # <span jwcid="manufacturerNumberNS"/></b> <span jwcid="descriptionNS"/> (item # <span jwcid="itemNumberNS"/>) Productline: <span jwcid="productLineNS"/> </td></tr> <tr jwcid="hiddenRowNS" style="display:none"><td></td> <td> <table> <tr><td colspan="2"> Orderline:<span jwcid="orderLineNS"/> Site: <span jwcid="siteNS"/> Delivered: <span jwcid="deliveredNS"/> Shipped Qty: <span jwcid="shippedQtyNS"/> Previously Claimed: <span jwcid="prevClaimedNS"/> </td></tr> <tr><td></td><td> <table jwcid="serializedItemsTable"> <span jwcid="serialNumberColumnValue"> <table> <tr><td><span jwcid="checkboxSI"/></td><td><span jwcid="serialNumberSI"/></td></tr> <tr jwcid="hiddenRowSI" style="display:none"><td></td><td> <table> <tr><td class="darkCell" width="23%">Product Condition</td><td class="lightCell"><span jwcid="productConditionSI"/></td></tr> <tr><td class="darkCell">Claim Quantity</td><td class="lightCell"><span jwcid="claimQuantitySI"/></td></tr> <tr><td class="darkCell">Sub Claim Type</td><td class="lightCell"><span jwcid="subClaimTypeSI"/></td></tr> <tr><td class="darkCell">Return Request</td><td class="lightCell"><span jwcid="returnRequestSI"/></td></tr> <tr><td class="darkCell">Received Serial No.</td><td class="lightCell"><span jwcid="receivedSerialNumberSI"/></td></tr> <tr><td class="darkCell">Ordered Mfg. No.</td><td class="lightCell"><span jwcid="orderedNumberSI"/></td></tr> <tr><td class="darkCell">Received Mfg. No.</td><td class="lightCell"><span jwcid="receivedNumberSI"/></td></tr> </table> </td></tr> </table> </span> </table> </td> </tr> </table> </span> </table> .page file ... <component id="tableSerialized" type="Contrib:Table"> <binding name="source" value="invoice.serializedProducts"/> <binding name="columns" value="literal:manufacturingPartNumber"/> <binding name="columnsClass" value="literal:title"/> </component> <component id="serializedItemsTable" type="Contrib:Table"> <binding name="source" value="components.tableSerialized.tableRow.serialItems"/> <binding name="columns" value="literal:serialNumber"/> <binding name="columnsClass" value="literal:title"/> </component> <component id="manufacturingPartNumberColumnValue" type="Block"/> <component id="serialNumberColumnValue" type="Block"/> <component id="checkboxNS" type="Checkbox"> <binding name="value" value="false"/> <binding name="id" value="components.tableSerialized.tableRow.manufacturingPartNumber"/> <binding name="onclick" value="literal:showRow(this)"/> </component> <component id="hiddenRowNS" type="Contrib:TableRows"> <binding name="id" value="components.tableSerialized.tableRow.manufacturingPartNumber"/> </component> <component id="checkboxSI" type="Checkbox"> <binding name="value" value="false"/> <binding name="id" value="components.serializedItemsTable.tableRow.serialNumber"/> <binding name="onclick" value="literal:showRow(this)"/> </component> <component id="hiddenRowSI" type="Contrib:TableRows"> <binding name="id" value="components.serializedItemsTable.tableRow.serialNumber"/> </component> ... Left out components are all type Insert or PropertySelector --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]