Re: response headers in Wicket 6
Thanks Francois, Second question: In 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the 6 or 1.5 conversion guides about them. What is the replacement? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/response-headers-in-Wicket-6-tp4662864p4662888.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
Re: response headers in Wicket 6
Just remove them. Wicket do not persist the form components' values anymore. On Tue, Dec 10, 2013 at 4:10 PM, Entropy blmulholl...@gmail.com wrote: Thanks Francois, Second question: In 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the 6 or 1.5 conversion guides about them. What is the replacement? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/response-headers-in-Wicket-6-tp4662864p4662888.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
response headers in Wicket 6
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
Re: response headers in Wicket 6
Second question (the first is still open), in 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the6 or 1.5 conversion guides about them. What is the replacement? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/response-headers-in-Wicket-6-tp4662864p4662866.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
Re: response headers in Wicket 6
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