Pages

Tuesday, November 11, 2014

SelectBooleanCheckbox with [Y, N] values using a custom converter

How to show selectBooleanCheckbox with [Y,N} values using a custom converter.

So first we need a converter which converts [Y,N] to [true, false] and viceversa. Here goes the converter code :-


Converter needs to be declared in faces-config.xml ..

Next goes the code snippet showing usage of our converter in selectBooleanCheckbox.


Enjoy!!