Did you looked at [1]

:-)

-Matthias

[1] http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox

On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> It works like a charm with the following in the facelets taglib:
>
>     <tag>
>         <tag-name>convertBoolean</tag-name>
>         <converter>
>
> <converter-id>org.apache.myfaces.custom.convertboolean.BooleanConverter<
> /converter-id>
>         </converter>
>     </tag>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
>
> -----Original Message-----
> From: Frank Russo
> Sent: Thursday, April 27, 2006 1:24 PM
> To: MyFaces Discussion
> Subject: RE: General Converter Question
>
> Can I apply the below to the facelet taglib as is? I'm trying it now, so
> hopefully...
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Matthias Wessendorf
> Sent: Thursday, April 27, 2006 1:17 PM
> To: MyFaces Discussion
> Subject: Re: General Converter Question
>
> taken from TLD file
>
> <snip>
>
> <!-- Converter for Boolean values -->
>         <tag>
>                 <name>convertBoolean</name>
>
> <tag-class>org.apache.myfaces.custom.convertboolean.ConvertBooleanTag</t
> ag-class>
>                 <display-name>Boolean Converter</display-name>
>                 <description>Converts a boolean to custom format
> (yes/no), (1/0), etc.</description>
>
>                 <attribute>
>                         <name>trueValue</name>
>                         <required>false</required>
>                         <description>Value representing a boolean true,
> e.g. TRUE, yes, 1, etc.</description>
>                 </attribute>
>
>                 <attribute>
>                         <name>falseValue</name>
>                         <required>false</required>
>                         <description>Value representing a boolean false,
> e.g. FALSE, no, 0, etc.</description>
>                 </attribute>
>         </tag>
>
> </snip>
>
> On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> > That's it exactly. Is it as simple as putting <s:convertBoolean
> > trueValue="Y" falseValue="N"/> in my page?
> >
> > Frank Russo
> > Senior Developer
> > FX Alliance, LLC
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> > Of Matthias Wessendorf
> > Sent: Thursday, April 27, 2006 12:54 PM
> > To: MyFaces Discussion
> > Subject: Re: General Converter Question
> >
> > Frank-
> >
> > perhaps [1] is useful to you
> >
> > -Matthias
> >
> > [1]
> > http://myfaces.apache.org/sandbox/apidocs/org/apache/myfaces/custom/co
> > nv
> > ertboolean/BooleanConverter.html
> >
> > On 4/27/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > > Yes, this should work.   I have the same issue, but I generally deal
> > > with it by converting the String type to a boolean type at the
> > > database layer level.
> > >
> > > But there's no reason you can't create a converter.   You'll need to
> > > manually assign it each place it is used, but that's probably what
> > > you
> >
> > > want to do anyway in this case.
> > >
> > >
> > > On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> > > >
> > > > 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
> > > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Aechterhoek 18
> > 48282 Emsdetten
> > http://jroller.com/page/mwessendorf
> > mwessendorf-at-gmail-dot-com
> >
> >
> >
> >
>
>
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> http://jroller.com/page/mwessendorf
> mwessendorf-at-gmail-dot-com
>
>
>
>
>
>
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Reply via email to