Nevermind, I found the answer I was looking for
http://sourceforge.net/mailarchive/message.php?msg_id=15192574

  Sorry about the repeated questions, lots have changed between 1.1.1 and 1.2 
and Sourceforge's mail list search has gotten worse over the last 4 months or 
so... can't reorder the list by posting date anymore.

  []s Gus




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gustavo
Hexsel
Sent: April 12, 2006 11:22 AM
To: [email protected]
Subject: [Wicket-user] Download after post broken in 1.2


  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=k&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to