Hi there,

  I used to have a download-after-submit, following an email I saw a while ago. 
 It used a construct like this:
        final WebResponse response = 
(WebResponse)getRequestCycle().getResponse();
        response.setContentType("text/csv");
        response.setHeader("Content-Disposition", "filename=\""+ filename + 
"\"");
        response.write(reportData);
        getRequestCycle().setResponsePage((WebPage)null);

  This seems to be not possible in 1.2 beta 3 (complains that the argument page 
cannot be null).  Is there a work-around for this?  Was this formalized in some 
other way?  I tried looking at the Migration to 1.2 guidelines, but didn't see 
anything that matched.

  Thanks,


    []s Gus


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to