Re: How to persist null values with JSF2?

2011-01-10 Thread Marsman
> strub > > --- On Mon, 1/10/11, Marsman wrote: > >> From: Marsman >> Subject: Re: How to persist null values with JSF2? >> To: users@myfaces.apache.org >> Date: Monday, January 10, 2011, 1:52 PM >> >> >> The action on the commandButton calls

Re: How to persist null values with JSF2?

2011-01-10 Thread Marsman
do you only look > at the database? If JPA is involved, then the jpa provider may replace > null with empty strings (known issue on oracle). > > LieGrue, > strub > > --- On Mon, 1/10/11, Marsman wrote: > >> From: Marsman >> Subject: Re: How to persist null va

Re: How to persist null values with JSF2?

2011-01-10 Thread Marsman
:-( 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). >

How to persist null values with JSF2?

2011-01-08 Thread Marsman
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 ca