http://jakarta.apache.org/tapestry/faq.html#faq-N10187

btw, I like to use anonymous components for such things

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 13, 2005 1:50 PM
> To: [email protected]
> Subject: Multiple use of component
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> is there any way to use a defined component in a page file 
> more than one
> time in the html file? I think it's bad design if i must 
> create the same
> component multiple times just because i want to use a condition
> 
> Example
> - -------
> 
> page file:
> [...]
> <component id="insertX" type="Insert">
>     <binding name="value" expression="readValue"/>
> </component>
> [...]
> 
> 
> html file:
> [...]
> <span jwcid="@Conditional" condition="ognl:showValue">
>     ...
>     <span="insertX"/>
>     ...
> </span>
> <span jwcid="@Conditional" condition="ognl:!showValue">
>     ...
>     <span="insertX"/>
>     ...
> </span>
> [...]
> 
> This occurs in an Exception:
> Template for component pagefile contains multiple references 
> to embedded
> component insertX.
> 
> Would be nice if someone has an idea not to create the insert 
> component
> twice.
> 
> Best Regards,
> 
> Mathias
> 
> - --
> Mathias Herkt (Diplomand)    | SQS Software Quality Systems AG
>                              | Stollwerckstrasse 11
> Phone:+49 2203/9154-7110     | D-51149 Cologne, GERMANY
> Fax:+49 2203/9154-15         | http://www.sqs.de
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
> 
> iD8DBQFCrXL/8hWAS3IShqURAnUmAJ0eNermUp4pFwDXefszAFbNBiRP/ACglUjg
> 7G00O7lQhj/TnoRIrFLKPSo=
> =rLLN
> -----END PGP SIGNATURE-----
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to