Hi Norbi,

the easiest solution for this is to use copy-of attribute to copy another component, e.g.:

<component id="spacer1" type="Image">
<binding name="image" expression="assets.spacer"/>
</component>

<component id="spacer2" copy-of="spacer1"/>

<context-asset name="imageAsset" path="/images/spacer.png"/>

This question comes up quite often. When the Implicit Components arrive in Tapestry 2.3 this will become a lot easier to do in HTML.

<img jwcid="@Image" image="assets.spacer"/>

Regards Malcolm

From: Programoz�s <[EMAIL PROTECTED]>
To: "Tapestry Developer" <[EMAIL PROTECTED]>
Subject: [Tapestry-developer] spacer image
Date: Fri, 25 Oct 2002 16:06:44 +0200

I have a spacer image and I have created an Image component for it. Is there a way to use this component multiple times on the same page?
I get "Template for component Home contains multiple references to embedded component spacerImage" error message.

Thanks,
Norbi

_________________________________________________________________
Surf the Web without missing calls!�Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to