Hi Anjana,

On Sat, Nov 6, 2010 at 10:53 AM, Anjana Fernando <[email protected]> wrote:

> Hi,
>
> Yeah, you have to give a non-whitespace character there, and for the
> moment I can't think of a workaround for your problem, guess it's a
> bug we have to fix,


+1... We need to fix this. Will raise a JIRA.


> which is simply removing the trim() and having
> length() > 0.
>

We also need to think about the UI aspects of this. It is not easy to enter
a 'tab' in a web form. Perhaps what we should do is allow the user to enter
values like '\t', '\n' in the UI, and then in the appropriate admin service
map them to proper characters.

Thanks,
Hiranya


> Cheers,
> Anjana.
>
> On Sat, Nov 6, 2010 at 5:22 AM, Hiranya Jayathilaka <[email protected]>
> wrote:
> > Hi Folks,
> > It seems $subject is impossible due to the way CSVConfig is implemented.
> > Take a look at the following code segment:
> >                 String columnSeparatorStr =
> > this.getProperty(DBConstants.CSV.COLUMN_SEPARATOR);
> > if (columnSeparatorStr != null && columnSeparatorStr.trim().length() ==
> 1) {
> > this.columnSeparator = columnSeparatorStr.trim().charAt(0);
> > } else {
> > this.columnSeparator = ',';
> > }
> > If tab is specified as the column separator the trim() operation will get
> > rid of it and the above code segment will select ',' as the separator. Is
> > there a workaround?
> > Thanks
> > --
> > Hiranya Jayathilaka
> > Senior Software Engineer;
> > WSO2 Inc.;  http://wso2.org
> > E-mail: [email protected];  Mobile: +94 77 633 3491
> > Blog: http://techfeast-hiranya.blogspot.com
> >
> > _______________________________________________
> > Carbon-dev mailing list
> > [email protected]
> > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
>
>
>
> --
> Anjana Fernando
> Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to