The forms.list accessor

list[model]

Answers an object that accesses the specified list model.

  • label[value] – get the label for the specified list model value; delegates to ListModel.getLabel(...)
  • value[key] – get the list model value for the specified key; delegates to ListModel.getValue(...)
  • key[value] – get the key for the specified list model value; delegates to ListModel.getKey(...)
  • values[criteria] – get an iterator over the sorted values of the list model; criteria must match the regular expression (+|-)?(index|value|key|label); delegates to ListModel.getValues(...)

Examples

The expression ${calyxo.forms.list[foo].label[bar]} finds the list model at attribute foo and answers the label for the list model value found at attribute bar.