file a ticket On Wed, Jun 29, 2011 at 4:19 PM, Adriano dos Santos Fernandes <[email protected]> wrote: > Hi! > > I'm converting an application to Wicket 1.5 and I see some problems with > resources. > > There is a case I need to add headers (not present in ResourceResponse > properties) and it looks ugly. > > This is what I need to do: > > @Override > protected void configureCache(ResourceResponse data, Attributes > attributes) > { > super.configureCache(data, attributes); > ((WebResponse) attributes.getResponse()).setHeader("Accept-Ranges", > "bytes"); > } > > It's a hack to use configureCache here, but this can't be added to > setResponseHeaders, which seams a better apparent method name for it. > > Or am I missing something? > > > Adriano > >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
