The value of a control is built from the element displayed in the form.
The element is described in the Dictionary where its attributes are listed.
The value in the control can simply be an attribute of the object, such as:
#{formAnimator.bean. brand } if "brand" is an attribute of the displayed object.
But it can also be an indirect attribute of the object, which will be determined by referring to the objects in the dictionary for which the entity is also an object.
Example: order address
Let us assume that we wish to display the order address on the [General] tab of the order:
, open the [Attributes] tab.
, open the [Attributes] tab.
Special case of contact details
The contact details are all PHONE objects.
The phoneNum attribute must be preceded by the number type:
For example, we thus obtain:
#{formAnimator.bean.orderContact.phones.HOME_PHONE.phoneNum} to designate the telephone number of the order contact.
#{formAnimator.bean.contactPo.phones.HOME_PHONE.phoneNum} or #{formAnimator.bean.contactPoPhoneHome} to designate the telephone number of the supplier's order contact, with the second version only being usable for display.