Use an AjaxLink (or extends abstractlink), this way the page version is not expected to increment.
On Wed, 2010-09-22 at 18:27 +0300, Altuğ Bilgin Altıntaş wrote: > 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. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org