Re: Wicket + iText ?

2008-06-26 Thread John Krasnay
If you look closely at my example, I'm not using IColumn from wicket-extensions, but rather my own interface, ReportColumn. ReportColumn defines a couple of methods to address just what you need: IModel getHeadingModel(); Object getCellValue(IModel rowModel); It's not very complex to roll you

Re: Wicket + iText ?

2008-06-26 Thread nanotech
I am trying to integrate iText on the lines of example provided by "John Krasnay" below. My question is : 1. While iterating over the list of IColumn .How to I get hold of the column's headers which I had created earlier using...(See TODO::1) final List columns = new ArrayLis

Re: Wicket + iText ?

2008-04-16 Thread Ricky
that is sweet, thanks, i'll try it out. Appreciate it. :) Rick On Wed, Apr 16, 2008 at 9:50 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > It goes something like this. I've left out a bunch of stuff to do with > setting column headings, widths, and styles. > > public interface ReportColumn extend

Re: Wicket + iText ?

2008-04-16 Thread John Krasnay
It goes something like this. I've left out a bunch of stuff to do with setting column headings, widths, and styles. public interface ReportColumn extends Serializable { public Object getCellValue(IModel rowModel); } public class ExcelReportGenerator implements ReportGenerator { public voi

Re: Wicket + iText ?

2008-04-16 Thread Ricky
Can someone post some code on this ? (only rough sketch ... nothing elaborate really. Thanks in advance. Rick On Wed, Apr 16, 2008 at 8:54 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > Hi RG, > > You probably want to look at how DataTable in wicket-extensions works. > The idea is you set up an a

Re: Wicket + iText ?

2008-04-16 Thread John Krasnay
Hi RG, You probably want to look at how DataTable in wicket-extensions works. The idea is you set up an array of column objects, each of which knows how to display the data in a particular column, and a data provider, which provides an iterator over the objects represent your rows. The DataTable p

Re: Wicket + iText ?

2008-04-16 Thread Igor Vaynberg
we do that at my company. we have a column subclass that has populatepdf(document, model) as opposed to populateitem(item, model); so we pass the data provider and the set of columns to an export list and it builds the grid. -igor On Wed, Apr 16, 2008 at 1:56 PM, nanotech <[EMAIL PROTECTED]> wro

Wicket + iText ?

2008-04-16 Thread nanotech
Hi, I have a table displayed in ListView element of wicket and would like to generate a PDF using iText API. Can someone suggest how to get started with this? Thanks, RG -- View this message in context: http://www.nabble.com/Wicket-%2B-iText---tp16733269p16733269.html Sent from the Wicket - U