JSF has <f:convertDateTime> and <f:convertNumber>, but nothing I've
seen to convert Booleans to custom values.  Has something like
<x:convertBoolean> already been written by anyone?  I have just
written one and would be willing to contribute it to MyFaces if there
is interest.

It is used like this:

<h:outputText value="#{backingBean.isABooleanValue}">
    <x:convertBoolean trueValue="Yes" falseValue="No"/>
</h:outputText>

-Ken

Reply via email to