@ref"

From Documentation
Line 14: Line 14:
 
'''Target Attribute:''' a custom attribute.
 
'''Target Attribute:''' a custom attribute.
  
'''Purpose:''' Create a reference whose name is the custom attribute. It is useful to shorten an EL expression and be referred by another expression.
+
'''Purpose:''' Create a reference to an EL expression that can be used in another EL expression.
 +
 
 +
We have to create this binding on a component's custom attribute whose name is referred in another EL expression. The EL expression that refers to the reference must be the children of the component that has the reference binding. It is useful to shorten an EL expression and be referred by another expression.
  
 
= Example =
 
= Example =

Revision as of 01:21, 9 March 2012

WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!

Since 6.0.1

Syntax

@ref( [EL-expression] )

Description

Target Attribute: a custom attribute.

Purpose: Create a reference to an EL expression that can be used in another EL expression.

We have to create this binding on a component's custom attribute whose name is referred in another EL expression. The EL expression that refers to the reference must be the children of the component that has the reference binding. It is useful to shorten an EL expression and be referred by another expression.

Example

<div p="@ref(vm.selectedPerson)"/>
    <label value="@load(p.id)" />
    <label value="@load(p.name)" />
</div>



Version History

Last Update : 2012/03/09


Version Date Content
6.0.1 May 2012 The new reference-binding feature.




Last Update : 2012/03/09

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.