Re: Supporting "null" in data load update

2010-01-23 Thread Jacques Le Roux
Ha, I see it's in https://issues.apache.org/jira/browse/OFBIZ-3421 Jacques From: "Jacques Le Roux" Just a detail: this is certainly not in trunk since around r883364 I have replaced all these kinds of idioms by some kinds of UtilValidate.is*Empty(), here for instance: UtilValidate.isNotEmpty(

Re: Supporting "null" in data load update

2010-01-23 Thread Jacques Le Roux
Just a detail: this is certainly not in trunk since around r883364 I have replaced all these kinds of idioms by some kinds of UtilValidate.is*Empty(), here for instance: UtilValidate.isNotEmpty() Jacques From: "Adam Heath" Bob Morley wrote: Actually I just did a quick test and the SAX parse

Re: Supporting "null" in data load update

2010-01-22 Thread Adam Heath
Bob Morley wrote: > Actually I just did a quick test and the SAX parser returns all attributes > that are defined in the document (even if they have empty string as their > value). The code as originally written ... > > // treat empty strings as nulls >

Re: Supporting "null" in data load update

2010-01-22 Thread Bob Morley
be consist with what you get on the initial create and would be a force back to "blank" on an update. Not having the field clearly implies ignore (which is what it does now), etc etc etc. Anyone buying that? :) -- View this message in context: http://n4.nabble.com/Supporting-null-i

Re: Supporting "null" in data load update

2010-01-22 Thread Adam Heath
Adrian Crum wrote: > Plus, I like being specific - using fieldName="null" makes it clear what > you intend to do. ="null" is a string, who's contents are null. There can be no other way to interpet that. Better would be to do null_$field="", or some such. You can definately tell when an attribu

Re: Supporting "null" in data load update

2010-01-22 Thread Adrian Crum
had done in this resolution. The net result of this, is that we would likely have to blow through about 1400 instances of *Data.xml files that are explicitly setting fields to ="" since it is likely that they really want them ignored. -- View this message in context: http://n4.nabble.com/Supporting-null-in-data-load-update-tp1100195p1100195.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: Supporting "null" in data load update

2010-01-22 Thread Scott Gray
of keyword which is what I had done in this resolution. > > The net result of this, is that we would likely have to blow through about > 1400 instances of *Data.xml files that are explicitly setting fields to ="" > since it is likely that they really want them ignored. > -- > View this message in context: > http://n4.nabble.com/Supporting-null-in-data-load-update-tp1100195p1100195.html > Sent from the OFBiz - Dev mailing list archive at Nabble.com. smime.p7s Description: S/MIME cryptographic signature

Supporting "null" in data load update

2010-01-22 Thread Bob Morley
they really want them ignored. -- View this message in context: http://n4.nabble.com/Supporting-null-in-data-load-update-tp1100195p1100195.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.