Accessors

Calyxo provides so-called accessors, to allow easy access to Calyxo-related information from within your views. Accessors form a tree of Java Beans and java.util.Maps, that may be queried through JSTL expressions, anywhere in a page.

The tree of accessors is instantiated and installed into request scope using the <base:access> tag, like in

<base:access var="calyxo"/>

By convention, we use calyxo to denote the root.

As an example, to take property foo from the bean at attribute mybean in module scope, you would use an expressions like

${calyxo.base.module.attribute['mybean'].foo}

The various Calyxo components contribute accessors providing information relevant to that component. However, Calyxo even lets you extend the tree by implementing your own accessors.