Project Documentation
Foundation

Summary

Tag name: <s:convertBoolean>
Converter class: org.apache.myfaces.custom.convertboolean.BooleanConverter
Tag class: org.apache.myfaces.custom.convertboolean.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.

Attributes

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.