list Taglib documentation

Version 1.0
Description Mashup List Helpers

Tag new list:new(...)

Create a new object of type List.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
vartruefalsejava.lang.String
Name of the exported variable for the new list.
removeDuplicatesfalsefalseboolean
Specifies whether the duplicated values should be removed. Defaults to "false".

Tag add list:add(...)

Adds a value to the given list.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
listtruetruejava.util.Collection
valuetruetruejava.lang.Object

Tag remove list:remove(...)

Removes a value from the given list.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
listtruetruejava.util.Collection
valuetruetruejava.lang.Object

Tag clear list:clear(...)

Clear the given list.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
listtruetruejava.util.Collection

Tag toMap list:toMap(...)

Transforms the given list of type List(List(String)) in a Map of type Map(String, List(String)). The first value of the sub-List is used as the Map key.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
vartruefalsejava.lang.String
listtruetruejava.util.Collection

Function contains list:contains(...)

Returns whether the given value is contained or not in the given list.
Function Class: com.exalead.cv360.searchui.view.jspapi.list.Functions
Function Signature: boolean contains(java.lang.Object, java.lang.Object)

Example

  1. < c:if test="${list:contains(list, value)}" >