I've also set this context parameter to true, but entity properties are not
set to null. I got empty strings and 0 again. After that, I've downloaded a
small JSF 2 example and deployed it. I got the same problem again. With
MyFaces 2.0.3 and Tomcat 6.0.29. What am I doing wrong? :-(

Titus




Jakob Korherr wrote:
> 
> Hi,
> 
> As for JSF 2.0, setting
> javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL to true
> should do the trick.
> 
> I just tested it with MyFaces 2.0.3 and it worked fine (for both
> String and Integer properties).
> 
> Regards,
> Jakob
> 
> 2011/1/8 Marsman <mars....@gmx.de>:
>>
>> Hi!
>>
>> Since migrated my application to JSF 2 I'm no able to persist an empty to
>> null converted value in the database. The values passed in
>> managedBean.setModel(model) are empty strings for example again. I'm
>> looking
>> for a reason of this behaviour for a few days now and would be happy, if
>> anybody can help me. Here are some snippets of my code:
>>
>>  ...
>>
>> Titus
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-persist-null-values-with-JSF2--tp30622750p30622750.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Jakob Korherr
> 
> blog: http://www.jakobk.com
> twitter: http://twitter.com/jakobkorherr
> work: http://www.irian.at
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-persist-null-values-with-JSF2--tp30622750p30632274.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to