This content has been marked as final.
Show 3 replies
-
1. Re: Excel downloading from an action button
nickarls Jan 12, 2009 10:50 PM (in response to rmemoria.ricardo.rmemoria.com.br)Ummm. Navigate to the xhtml page of the worksheet?
-
2. Re: Excel downloading from an action button
mail.micke Jan 12, 2009 10:52 PM (in response to rmemoria.ricardo.rmemoria.com.br)I'm assuming you want to generate the Excel via the Seam Excel support. If not you can use whatever library you want and simpy write the Excel to the HTTP response.
Have you tried simply returning the view id from the action? If the objects you wish to use when rendering the excel are still in scope then that should work fine.
public String myAction(){ // logic return "/xls/some_xls.xhtml"; }
Cheers,
Micke -
3. Re: Excel downloading from an action button
rmemoria.ricardo.rmemoria.com.br Jan 13, 2009 3:02 AM (in response to rmemoria.ricardo.rmemoria.com.br)Incredibly how simple this solution is... It's working perfectly.
Thanks a lot,
Ricardo