Hi,

Here is code to export excel;

 Link linkExcel = new Link("linkExcel") {
     public void onClick() {
        getRequestCycle().setRequestTarget(
                    new ComponentRequestTarget(tableContainer) {

                        @Override
                        public void respond(RequestCycle requestCycle) {
                          .....
                           WebResponse wr = (WebResponse) getResponse();
                           wr.setContentType("application/vnd.ms-excel;
charset=utf-8" );
                           wr.setCharacterEncoding(Constants.ENCODING);
                           wr.setHeader("content-disposition",
"attachment;filename=" + Constants.DEFAULT_EXCEL_FILE);
                        }

 }

It works great.

*Problem steps  *:

   1. Click excel link and get the excel file - great !
   2. Click a modalwindow link (Ajax) gets "*Page Expired"* error.


Any suggestions on *step 2* ?

Thanks.

Reply via email to