mojarra icon indicating copy to clipboard operation
mojarra copied to clipboard

No escaping when <f:Selectitems> is used with a Map

Open Raqueta opened this issue 6 years ago • 0 comments

If its values attributed is backed by a Map, <f:selectItems> ignores all other attributes, including itemLabelEscaped. Even worse, in this case the itemLabelEscaped attribute does not default to true, as specified here, but to false. Therefore the whole items list gets rendered without any escaping. The culprit seems to be SelectItemsIterator, which fails to evaluate all attributes for Maps. It does so for SelectItem objects, arrays or Collections, though.

Raqueta avatar Jan 20 '20 16:01 Raqueta