You can try something like this: use an actionListener - and then:
public myListener(ActionEvent ev)
{
//Have the commandLink in the header or footer facet of the table (not
fully sure if this works though)
UIData dataTable = (UIData) ev.getComponent().getParent().getParent();
//call POI and render to FacesContext.getCurrentInstance().responseWriter()
finall call FacesContext.getCurrentInstance().responseComplete();
}
or whatever you want to do...
regards,
Martin
On 9/2/05, ::SammyRulez:: <[EMAIL PROTECTED]> wrote:
> hi I read a old post about how export dataTable data in excel format
>
> http://www.mail-archive.com/[email protected]/msg03873.html
>
> It seems there is no solution except building a custom POI servlet
> with sepcific code (read duplicated code! ) for each datatable(my
> actual solution).
>
> Isn0t any convinient method to pass a full dataTable Object to an
> actionMethod...
>
> I have some code thath would be useful
>
> http://sourceforge.net/projects/spreadobjects
>
> see ya
>
>
> --
> ::SammyRulez::
> http://sammyprojectz.blogspot.com
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German