Try using the copy-of attribute, intead of the type attribute, inside your
specification.

----- Original Message -----
From: "Chris Merrill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 8:43 PM
Subject: [Tapestry-developer] re-use of component declaration


> I have a page that contains ~10 uses of a Direct
> component.  Each usage is similar, except for the
> binding of the context.
>
> HTML snippet:
> <A jwcid="vfr_3-4">
> <IMG SRC="images/vfr/Vfr3-4-small.jpg" ALT="(click to enlarge)"
WIDTH="100" HEIGHT="132">
> </A>
>
> jwc spec snippet:
> <component id="vfr_3-4" type="Direct">
>      <static-binding name="context">vfr3-4.jpg</static-binding>
>      <binding name="listener" property-path="listeners.displayPicture"/>
>      <static-binding name="stateful">Boolean.false</static-binding>
> </component>
>
> Is there a way for me to move the values of the static
> binding ("context") into the HTML.  The purpose is to
> simplify the jwc spec to a single entry, and put the
> specification of the value in the HTML, where the author
> can provide the necessary information.
>
>
> *********************************
> Chris Merrill
> [EMAIL PROTECTED]
> *********************************
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to