From jira-events at lists.jboss.org Wed Oct 14 03:55:05 2009 Content-Type: multipart/mixed; boundary="===============1688381067858234334==" MIME-Version: 1.0 From: =?utf-8?q?Andreas_H=C3=B6hmann_=28JIRA=29_=3Cjira-events_at_lists=2Ejboss?= =?utf-8?q?=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-7984) I would be nice to have the BaseXML redirecting-code in a util-class Date: Wed, 14 Oct 2009 03:55:05 -0400 Message-ID: <1885516285.1255506905723.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com> --===============1688381067858234334== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I would be nice to have the BaseXML redirecting-code in a util-class -------------------------------------------------------------------- Key: RF-7984 URL: https://jira.jboss.org/jira/browse/RF-7984 Project: RichFaces Issue Type: Feature Request Affects Versions: 3.3.2.GA Reporter: Andreas H=C3=B6hmann Priority: Minor I wrote a special spring security entry point to handle missing authenticat= ion *after* a a4j-request: /** * {@inheritDoc} */ @Override protected void sendRedirect(final HttpServletRequest theRequest, final Ht= tpServletResponse theResponse, final String theUrl) throws IOException { if (!isAjaxRequest(theRequest)) { LOG.debug("normal redirect to " + theUrl); super.sendRedirect(theRequest, theResponse, theUrl); } else { LOG.debug("ajax redirect to " + theUrl); final FilterServletResponseWrapper servletResponseWrapper =3D new Fil= terServletResponseWrapper(theResponse); final Writer output =3D resetResponse(theResponse, servletResponseWra= pper, "redirect"); theResponse.setHeader(AjaxContainerRenderer.AJAX_LOCATION_HEADER, the= Url); // For buggy XmlHttpRequest realisations repeat headers in // output.write("\n" + "
" + "