For the last two lines : data.getHeaders().addHeader(key, value); or ((WebResponse) attributes.getResponse()).addHeader(key, value);
for response.setAttachmentHeader(defaultFileName); (from WebResponse.java) setHeader("Content-Disposition", "attachment" + ((!Strings.isEmpty(filename)) ? ("; filename=\"" + filename + "\"") : "")); François Meillet Formation Wicket - Développement Wicket Le 9 déc. 2013 à 20:46, Entropy <blmulholl...@gmail.com> a écrit : > Hi, I'm converting one of our apps from 1.4.7 to 6.12. the old code extended > WebResource. I changed it to extend ByteArrayResource. I changed > setheaders to setResponseHeaders. But the code inside, I am not sure how to > change to Wicket 6 as the parameters are very different. > > @Override > protected void setResponseHeaders(AbstractResource.ResourceResponse > data, > IResource.Attributes attributes) { > super.setResponseHeaders(data, attributes); > response.setAttachmentHeader(defaultFileName); > response.setHeader("Cache-Control", "No-Cache"); > response.setHeader("Cache-Control", "No-Store"); > } > > How can I adapt the last three lines to Wicket 6? > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/response-headers-in-Wicket-6-tp4662864.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >