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
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 converting
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 by
:[EMAIL PROTECTED]
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
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 common
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/conv
ertboolean/BooleanConverter.html
On 4/27/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
Yes, this should
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/conv
ertboolean/BooleanConverter.html
On 4/27/06
-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
: 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
Subject: RE: General Converter Question
It works like a charm with the following in the facelets taglib:
tag
tag-nameconvertBoolean/tag-name
converter
converter-idorg.apache.myfaces.custom.convertboolean.BooleanConverter
/converter-id
/converter
/tag
Frank
I'm missing?
Frank Russo
Senior Developer
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
Converter Question
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
PM
To: MyFaces Discussion
Subject: Re: General Converter Question
Only thing I can think of is a missing or incorrect xmlns entry at the
top of the page (or wherever you're specifying them). Is this the
first sandbox component you're using?
Other than that, your best bet is to post your web.xml
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:
==
context-param
, April 27, 2006 4: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's what I have
15 matches
Mail list logo