messageForm.configuredChannels
is a collection and the fn:length()
function is checking to see if the collection contains more than one element. If the collection contains more than one element the label
containing the checkbox is displayed and if not it is hidden by adding a css class.
Lets break the expression down:
${fn:length(messageForm.configuredChannels) > 1 ? '' : 'hidden'}"
1. ${}
This just denotes a JSP EL expression
2. fn:length(messageForm.configuredChannels) > 1 ? '' : 'hidden'
This is a ternary operator
3. fn:length(messageForm.configuredChannels)
Returns amount of elements in collection