-
The o:compositeConverter allows multiple converters to be chained together.
Usage
This converter is available by <o:compositeConverter> tag.
<h:inputText value="#{bean.value}">
<o:compositeConverter converterIds="trimConverter, sanitizeConverter, entityConverter" />
</h:inputText>
Execution Order
The converters are executed in the order they are defined in the converterIds attribute during the getAsObject and in reverse order during the getAsString.
- getAsObject: Executed 1st → 2nd → 3rd. The result of the first converter is passed as the input to the next converter.
- getAsString: Executed 3rd → 2nd → 1st. The result of the last converter is passed as the input to the previous converter to ensure symmetry.
Documentation & Sources