That's indeed true. If we provide a new option for autogenColumns then we
should additionally provide some ways of specifying CSVConfig or CSVField
inside XML DSL to be considered as well. Also note that autogenColumns
default value is true.

@Claus, As you see by [1] the best we get out of the new
autogenColumns="false" is just a bunch of line feed characters as no new
column gets added any more!

As now the autogenColumns has been already provided we should also provide a
way inside XML DSL so that the user can specify which columns should be
added. Maybe through CSVFieldRefs (Refs to XML Beans), list of Strings, etc.
which we would then add to CsvDataFormat's CSVConfig.

What do you think?

[1]
https://svn.apache.org/repos/asf/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalAutogenColumnsSpringTest.java

Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/CSV-dateformat-bug-Attribute-AutogenColumns-is-not-allowed-to-appear-in-element-camel-csv-tp5570066p5572575.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to