Property Expression Language is used in the Property Models to access property values of object wrapped by model. Its syntax is very similar to the Object Graph Navigation Language (OGNL). (Wicket actually used to utilize the OGNL implementation until version 1.1.x. However, later it has been replaced by custom, better-performing, implementation of expression parser).
...
"property.index"
: If the property is a List or Array then the second property can be used as a index on that list/array like this:'mylist.0'
. This kind of expression will be mapped on thegetProperty(index)
orsetProperty(index, value)
methods. If the object represents a List and the index is greater than its size of this list, the list will be expanded.
Index or map properties can be alternatively written as: {{ Wiki Markup "property
\[index
\]"
}} or {{"property
\[key
\]"
}}.
For example, if we have a following class:
...
Panel | ||||
---|---|---|---|---|
| unmigrated-wiki-markup||||
We started out with OGNL in the past but:
Eelco Hillenius |