You have to create two wrapped components - you cannot share them.
Something like this:
.html:
<table>
<span jwcid="onTop">
<tr><span jwcid="wrapped1"/></tr>
</span>
<span jwcid="titled">
<tr>
<td jwcid="et"><span jwcid="titleItem"/></td>
</tr>
</span>
<tr jwcid="e">
<td jwcid="ed"><span jwcid="dataItem"/></td>
</tr>
<span jwcid="onBottom">
<table><span jwcid="wrapped2"/></table>
</span>
</table>
.jwc:
<component id="wrapped1" type="InsertWrapped">
<!--bindings go here-->
</component>
<component id="wrapped2" copy-of="wrapped1" />
See this for more info:
http://tapestry.sourceforge.net/doc/DevelopersGuide/components.specification
.html#components.spec.component
Richard
----- Original Message -----
From: "xuzhou" <[EMAIL PROTECTED]>
To: "tapestry-developer" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 5:02 PM
Subject: [Tapestry-developer] question about InsertWrapped
> Hi there,
>
> I want to develope a component, the wrapped of which can be put on top or
bottom of itself. The following is the template file:
>
> <table>
> <span jwcid="onTop">
> <tr><span jwcid="wrapped"/></tr>
> </span>
>
> <span jwcid="titled">
> <tr>
> <td jwcid="et"><span jwcid="titleItem"/></td>
> </tr>
> </span>
>
> <tr jwcid="e">
> <td jwcid="ed"><span jwcid="dataItem"/></td>
> </tr>
>
> <span jwcid="onBottom">
> <table><span jwcid="wrapped"/></table>
> </span>
> </table>
>
> wrapped is InsertWrapped component. onTop and onBottom are both
Conditional components. Only and just one of them can be true. But the
tapestry complains:
> Template for component Home/datagrid contains multiple references to
embedded component wrapped.
>
> How to resolve this problem?
>
> Thanks
>
>
>
-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer