myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Byrne" <den...@dbyrne.net>
Subject Re: General Converter Question
Date Thu, 27 Apr 2006 16:56:16 GMT
If you look at the source there is already a boolean converter, but it does the *opposite*
of what you need.  It was in sandbox the last time I saw it but it may have moved to tomahawk.
 Should be quick to implement though.

Dennis Byrne

>-----Original Message-----
>From: Frank Russo [mailto:frank.russo@FXALL.com]
>Sent: Thursday, April 27, 2006 12:35 PM
>To: 'MyFaces Discussion'
>Subject: General Converter Question
>
>Is it possible to bind a h:selectBooleanCheckbox component to a String
>field? The string field is coming out of the db as a Y or N value. This
>is existing code used in a lot of places, and I can't change it. It
>should have been stored in the object as a boolean or Boolean, but I
>can't change that now.
> 
>Any ideas on how to do this? I've read about using converter's, but they
>don't seem to apply here, unless I have to write my own. I'd rather use
>a standard one if I can. 
> 
>Thanks...
>
>Frank Russo
>Senior Developer
>FX Alliance, LLC
>900 Third Avenue, 3rd Floor
>New York, NY 10022
>646.268.9949
>
> 
>



Mime
View raw message