Hi,

use 'copy-of' attribute:
<component id="comp2" copy-of="comp1"/>

Using 'copy-of' it is also possible to override some of the bindings of the
original component.

Igor

On 7/26/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> What's the way to have something like a variable in component
> specification ?
>
> In those 2 components there is the same ognl expresion in the value
> attribute.
>
>     <component id="comp1" type="Any">
>         <binding name="value"
> value="ognl::'L'+currentList.id+'C'+currentCandidat.id" />
>     </component>
>     <component id="comp2" type="Any">
>         <binding name="value"
> value="ognl:'L'+currentList.id+'C'+currentCandidat.id" />
>     </component>
>
> How can I define this expresion only one time ?
>
> Thanks
> cyrille
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to