Bastian Pawlik wrote:
> Hello folks,
>
> Now my question: is it possible to set a user-defined seperator such as ";" 
> "|" or "#"? I didn't find anything to override the default seperator "," for 
> the csv export.
>
>   

The comma is hardcoded into the CsvView export class. However you can 
subclass this class with your own Export View and override the 
getCellEnd() method to return whatever separating character you like:

     /**
      * @see org.displaytag.export.BaseExportView#getCellEnd()
      */
     protected String getCellEnd()
     {
         return ","; //$NON-NLS-1$
     }



Then follow the instructions here to add your export view to displaytag:

http://displaytag.sourceforge.net/1.2/export.html


Ed!

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to