I can't find the original message you replied to anywhere in my email. Perhaps because it is from Nabble? I think posting to the list from Nabble is blocked. Anyway, how about a custom subclass of WebResponse? Application creates it for every response.
PS - Sent from a tablet. Please excuse typos, spelling and compiler errors. -- Jeremy Thomerson http://wickettraining.com Need a CMS for Wicket? Use Brix! http://brixcms.org On Nov 28, 2011 10:15 PM, "jcgarciam" <[email protected]> wrote: > What about using a filter in front of your Wicket application > > On Mon, Nov 28, 2011 at 1:15 PM, Sven Ludwig [via Apache Wicket] < > [email protected]> wrote: > > > Hello, > > > > is there a way to set a common HTTP Header on all Responses of a Wicket > > 1.4.19 Application which returns redirect-to-buffer responses, Ajax > > responses and possibly also resource responses? Is there possibly > a(nother) > > way since Wicket 1.5? > > > > If I set the Header for example in overwritten > > WebRequestCycle.onBeginRequest, there is a problem with at least the > > redirect-to-buffer responses done in my case by the > > HybridUrlCodingStrategy. The HTTP Header will be present in the first > > response which is the redirect itself, but not in second response coming > > from the buffer. > > > > Best Regards, > > Sven > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > > http://apache-wicket.1842946.n4.nabble.com/How-to-set-a-common-HTTP-Header-on-all-Responses-tp4115751p4115751.html > > To unsubscribe from Apache Wicket, click here< > http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY= > > > > . > > NAML< > http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > > -- > > JC > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-set-a-common-HTTP-Header-on-all-Responses-tp4115751p4117902.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
