Something like this may work for your DynamicWebResource:

@Override
    protected void setHeaders(WebResponse response) {
        super.setHeaders(response);
        String name = getFileName();
        if (name != null) {
            response.setHeader("Content-Disposition",
String.format("attachment; filename=\"%s\"", name));
        }
        
        // Cache for 60 secs to give client app (e.g. word or excel or
acrobat) time to open file.
        response.setDateHeader("Expires", System.currentTimeMillis() + (60 *
1000));
        response.setHeader("Cache-Control", "max-age=" + 60);
    }
-- 
View this message in context: 
http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to