Understanding XPages Part 4
Expression Language
Now that we have established a baseline familiarity with Managed Beans, let’s dig into how we use and interact with them. Expression Language generally takes the form of #|${BeanName.property|method}
or it can be expressed as #|${BeanName[index|'key']}
. The first character indicates whether the value binding is dynamic (#
- value is computed every time the expression is evaluaged) or static ($
- value is computed once at page load and never changes. Some properties must be one or the other, but many accept either. BeanName is self-explanatory. Property is either used as a key for Map
and DataObject
objects, or it is converted to a getter. property
becomes getProperty()
or isProperty()
(if boolean
).