RE: General Converter Question

2006-04-27 Thread Frank Russo
31 PM To: MyFaces Discussion Subject: Re: General Converter Question On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote: > I've tried other sandbox components in the past, but have had similar > problems. Possibly a newline issue in the facelets.LIBRARIES list? Here&#

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote: > I've tried other sandbox components in the past, but have had similar > problems. Possibly a newline issue in the facelets.LIBRARIES list? Here's what I have: web.xml: == facelets.LIBRARIES /WEB-INF/je

RE: General Converter Question

2006-04-27 Thread Frank Russo
Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 4:15 PM To: MyFaces Discussion Subject: Re: General Converter Question Only thing

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
eb.xml. Both the taglib and the sandbox jar are included in > my webapp. Is there something I'm missing? > > Frank Russo > Senior Developer > FX Alliance, LLC > > > -Original Message- > From: Mike Kienenberger [mailto:[EMAIL PROTECTED] > Sent: Thursday, Apri

RE: General Converter Question

2006-04-27 Thread Frank Russo
eveloper FX Alliance, LLC -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 3:03 PM To: MyFaces Discussion Subject: Re: General Converter Question On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote: > Actually, I thought it was worki

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote: > Actually, I thought it was working, but it was getting a null, but the > checkbox rendered unchecked. When I set a value, I get the exception > below. It seems to not be finding the converter, as it's never called. > > I've added the sandbox.tagl

RE: General Converter Question

2006-04-27 Thread Frank Russo
: MyFaces Discussion Subject: RE: General Converter Question It works like a charm with the following in the facelets taglib: convertBoolean org.apache.myfaces.custom.convertboolean.BooleanConverter< /converter-id> Frank Russo Senior Developer FX All

Re: General Converter Question

2006-04-27 Thread Matthias Wessendorf
convertBoolean > > > org.apache.myfaces.custom.convertboolean.BooleanConverter< > /converter-id> > > > > > Frank Russo > Senior Developer > FX Alliance, LLC > > > -Original Message- > From: Frank Russo > Sent: Thursday, April 27, 2006 1:24 PM &g

RE: General Converter Question

2006-04-27 Thread 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] [ma

RE: General Converter Question

2006-04-27 Thread Frank Russo
Faces Discussion Subject: Re: General Converter Question taken from TLD file convertBoolean org.apache.myfaces.custom.convertboolean.ConvertBooleanTag Boolean Converter Converts a boolean to custom format (yes/no), (1/0)

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote: > That's it exactly. Is it as simple as putting trueValue="Y" falseValue="N"/> in my page? Well, that and defining your facelet taglib. :-)

Re: General Converter Question

2006-04-27 Thread Matthias Wessendorf
---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 > > -

RE: General Converter Question

2006-04-27 Thread Frank Russo
t: Re: General Converter Question Frank- perhaps [1] is useful to you -Matthias [1] http://myfaces.apache.org/sandbox/apidocs/org/apache/myfaces/custom/conv ertboolean/BooleanConverter.html On 4/27/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > Yes, this should work. I have the sam

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Julian Ray <[EMAIL PROTECTED]> wrote: > If you use something like the BooleanUtils class from commons-lang, much of > the technical aspects of conversion from strings to boolean values is done > for you. All you need is a simple converter wrapper and a taglib. > > As this is such a comm

Re: General Converter Question

2006-04-27 Thread Dennis Byrne
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:[EM

Re: General Converter Question

2006-04-27 Thread Matthias Wessendorf
Frank- perhaps [1] is useful to you -Matthias [1] http://myfaces.apache.org/sandbox/apidocs/org/apache/myfaces/custom/convertboolean/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 b

RE: General Converter Question

2006-04-27 Thread Julian Ray
d one into the Tomahawk build. -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 12:40 PM To: MyFaces Discussion Subject: Re: General Converter Question Yes, this should work. I have the same issue, but I generally deal with it by conve

Re: General Converter Question

2006-04-27 Thread Mike Kienenberger
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