tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Using Convert to handle NULL values for empty Strings ""
Date Mon, 20 Oct 2008 09:59:06 GMT
Alexander Hartner wrote:
> Setting the COERCE_TO_ZERO to false in 6.0.18 did the trick for me.

Just a word of warning. Setting COERCE_TO_ZERO to false is not spec
compliant. If you switch containers then you may see different behaviour.

Mark

> Initially I only tested this on 6.0.16.
> 
> Thanks Chuck.
> On 20 Oct 2008, at 00:12, Alexander Hartner wrote:
> 
>> Hi Chuck,
>>
>> Thanks for coming back to me to quickly. I have tried this, but this
>> only seems to work for numbers. I am looking at Strings.
>>
>> So far I have tested this with Sun's JSF 1.2_04-b20-p03 as well as
>> 1.2_09-b02-FCS and myfaces-core-1.2.4.
>>
>> MyFaces gave me some other errors, but now behaves in exactly the same
>> way at Sun implementation, converting any nulls returned by the
>> converter into an empty string.
>>
>> I am hoping that there is a simple solution for this as I surely can't
>> be the first one to pick this up.
>>
>> Thanks for all your support.
>> Alex
>>
>>
>> On 19 Oct 2008, at 23:41, Caldarale, Charles R wrote:
>>
>>>> From: Alexander Hartner [mailto:alex@j2anywhere.com]
>>>> Subject: Re: Using Convert to handle NULL values for empty Strings ""
>>>>
>>>> The problem indeed does not appear in 6.0.14, however both
>>>> 6.0.16 and 18 are affected by it.
>>>>
>>>> I wonder what has changed, and how I can fix this
>>>
>>> This might be related:
>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=43285
>>>
>>> Try playing with the associated COERCE_TO_ZERO system property to see
>>> if it has an effect:
>>> http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Expression%20Language
>>>
>>>
>>> - Chuck
>>>
>>>
>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
>>> PROPRIETARY MATERIAL and is thus for use only by the intended
>>> recipient. If you received this in error, please contact the sender
>>> and delete the e-mail and its attachments from all computers.
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message