In my experience (outside wicket) the content type matters to FF and
Opera, IE mainly looks at the file ending. So make sure you set that
to application/pdf or some similiar. Also, the content-dispostion can
be set to "inline" instead of "attachement"
(http://www.ietf.org/rfc/rfc1806.txt) which sometimes leads the
browser down the path of opening the PDF in the browser window.
However, I have noticied that you can never predict what will happen,
new versions of acrobat plug-in and browsers can change the behaviour.
2008/1/24, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>:
> MMmmm.... Could it be possible an expiration before the launch of the adobe
> reader plugin for the firefox tab?
>
> I'll try it out.
>
> thanks,
> f(t)
>
> On Jan 24, 2008 4:54 AM, severian <[EMAIL PROTECTED]> wrote:
>
> >
> > 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<http://nabble.com/>
> > .
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]