Hi Suvojit,

I don't know CSVDataExporter but I noticed that the second bounded type 
parameter was a 
wildcard and not a defined type.

I use Wicket 7 where there are only 2 parameters.

See some examples:
http://www.7thweb.net/wicket-jquery-ui/kendo/datatable/CommandsDataTablePage;jsessionid=2926A68F12DAE4CAC910C18699676209?0
https://doc.codelutin.com/cantharella/xref/nc/ird/cantharella/web/utils/data/TableExportToolbar.html


François


François Meillet
Formation Wicket - Développement Wicket





Le 6 nov. 2014 à 13:07, suvojit168 <[email protected]> a écrit :

> Francois Meillet wrote
>> try
>> List&lt;IExportableColumn&lt;AffiliateModel, ?&gt;> columns = new
>> ArrayList&lt;IExportableColumn&lt;AffiliateModel, ?&gt;>();
> 
> Hi François,
> 
> Thanks for reply. I am using wicket 6.16. As per this  Link
> <http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/extensions/markup/html/repeater/data/table/export/IExportableColumn.html>
>    
> we have,
> 
> Interface IExportableColumn<T,S,D>
> 
> Type Parameters:
> T - The type of each row in the table.
> S - The type of the sort property of the table.
> D - The type of the data displayed by this column.
> 
> When I try : 
> List<IExportableColumn&lt;AffiliateModel, ?>> columns = new
> ArrayList<IExportableColumn&lt;AffiliateModel, ?>>(); 
> 
> I  get compile time error "Incorrect number of arguments for type
> IExportableColumn<T,S,D>; it cannot be parameterized with arguments
> <AffiliateModel, ?>".
> 
> Nonetheless, this works :
> List<IExportableColumn&lt;AffiliateModel, ?, ?>> columns = new
> ArrayList<IExportableColumn&lt;AffiliateModel, ?, ?>>();
> 
> I am getting a null pointer exception inside exportData (...) now which I am
> looking at. Will add reply if I need assistance.
> 
> PS: It will be great if you can share some
> examples/tutorials/articals/anything on CSVDataExporter ( I am not very much
> comfortable with CSVDataExporter as of now).
> 
> 
> Thanks,
> Suvojit
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-use-CSVDataExporter-tp4668270p4668280.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to