You can try subclassing HttpServletRequest and filter the headers. -Matej
On 6/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > it could be that we set the headers again after that in the chain.doFilter > call. > > > > > On 6/28/07, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> > wrote: > > Hi Matej > > > > I've tried adding this: > > > > public void doFilter(ServletRequest servletRequest, > > ServletResponse servletResponse, FilterChain filterChain) > > throws IOException, ServletException { > > > > if (servletRequest instanceof HttpServletRequest) { > > HttpServletRequest request = (HttpServletRequest) > > servletRequest; > > > > /* > > * First check if wicket ajax header are present, if true > > then add > > * missing parameter > > */ > > > > if (isHeaderPresent(request, Wicket_AJAX_HEADER)) { > > if (LOG.isDebugEnabled()) { > > LOG.debug("Got a wicket ajax header for domain: " > > + request.getServerName()); > > } > > > > if (servletResponse instanceof HttpServletResponse) { > > if (LOG.isDebugEnabled()) { > > LOG.debug("Trying to add " + CACHE_HEADER + ", " > > + CACHE_NO_STORE); > > > > } > > HttpServletResponse response = > (HttpServletResponse) > > servletResponse; > > response.addHeader(CACHE_HEADER, CACHE_NO_STORE); > > if (LOG.isDebugEnabled()) { > > LOG.debug("Header added sucessfully, has these " > > + CACHE_HEADER + "'s:"); > > Enumeration enum = > request.getHeaders(CACHE_HEADER); > > while (enum.hasMoreElements()) { > > > > String header = (String) > enum.nextElement(); > > LOG.debug(header); > > } > > > > } > > > > } > > } > > } > > filterChain.doFilter(servletRequest, servletResponse); > > } > > > > However it does not seem to add the header? Hoping you can tell what > > wrong? Log tells me that the filter does get activated and adds to > > header.. But on the web page firebug does not report that the header are > > there... > > > > > > regards Nino > > > > Matej Knopp wrote: > > > I think we could make this by default in wicket. Until then, you can > > > make a filter, that checks if the request contains wicket-ajax header, > > > and when it does, add the cache-control no-store header. > > > > > > -Matej > > > > > > On 6/27/07, Nino Saturnino Martinez Vazquez Wael > > > <[EMAIL PROTECTED] > wrote: > > > > > >> Hi > > >> > > >> We are having some troubles using wicket and Oracle web server. It's > > >> some of our ajax calls that just hangs. By hanging I mean that if we > > >> click an ajax triggering control, if fires the event and just never > gets > > >> a response. Debuggin a little deeper it seems that wicket does not even > > >> gets the request. We are suspecting that it has something todo with the > > >> oracle web cache. > > >> > > >> So the ajax call sends some attributs with it to avoid being cached, > > >> however it's missing the cache-control="no-store". We are not sure > > >> that this are causing our troubles. How can I make the ajax call > include > > >> the attribute? > > >> > > >> Has anybody some ideas about this? > > >> > > >> > > >> I've tested the application on jetty, and here it works without any > > >> problems. > > >> > > >> > > >> any help highly appreciated. > > >> > > >> > > >> regards Nino > > >> > > >> > ------------------------------------------------------------------------- > > >> This SF.net email is sponsored by DB2 Express > > >> Download DB2 Express C - the FREE version of DB2 express and take > > >> control of your XML. No limits. Just data. Click to get it now. > > >> http://sourceforge.net/powerbar/db2/ > > >> _______________________________________________ > > >> Wicket-user mailing list > > >> Wicket-user@lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user > > >> > > >> > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user