Apache MyFaces
Project Documentation


Tag name: <mcc:convertBoolean>
Converter class: org.apache.myfaces.commons.converter.BooleanConverter
Tag class: org.apache.myfaces.commons.converter.ConvertBooleanTag
converter id: org.apache.myfaces.custom.convertboolean.BooleanConverter
Converter that translates between boolean values (true/false) and alternate versions of those boolean values like (yes/no), (1/0), and (way/no way).

To customize the representation of a boolean true and false, use {@link #setTrueValue(String)} and {@link #setFalseValue(String)} respectively. If not configured with these setter methods, it defaults to true and false.

The values are case sensitive.


Name Type Supports EL? Description
falseValue String Yes Value representing a boolean false, e.g. FALSE, no, 0, etc.
trueValue String Yes Value representing a boolean true, e.g. TRUE, yes, 1, etc.

Facelets Attributes

Name Type Required Description
for String false