Available for ZK: PE, EE





Target Attribute: custom attribute.

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

Create this binding on a component's custom attribute whose name can be referred and used in another EL expression. The EL expression that refers to the reference must be the child of the component that contains the reference binding. This feature is useful in shortening EL expressions by referring to it in another expression.


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