Author: manaRH
Date: 2008-04-18 11:37:25 -0400 (Fri, 18 Apr 2008)
New Revision: 7976
Modified:
branches/Seam_1_2_1_AP/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java
Log:
JBPAPP-738 - fix of redirecting the output result
Modified: branches/Seam_1_2_1_AP/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java
===================================================================
--- branches/Seam_1_2_1_AP/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java 2008-04-18
15:35:52 UTC (rev 7975)
+++ branches/Seam_1_2_1_AP/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java 2008-04-18
15:37:25 UTC (rev 7976)
@@ -229,12 +229,6 @@
if (sendRedirect) {
DocumentStore store = DocumentStore.instance();
id = store.newId();
-
- ResponseWriter response = context.getResponseWriter();
- response.startElement("html", this);
- response.startElement("head", this);
- response.startElement("meta", this);
- response.writeAttribute("http-equiv", "Refresh", null);
String viewId = Pages.getViewId(context);
baseName = baseNameForViewId(viewId);
@@ -242,12 +236,7 @@
url = Manager.instance().encodeConversationId(url, viewId);
- response.writeAttribute("content", "0; URL=" + url,
null);
-
- response.endElement("meta");
- response.endElement("head");
-
- response.startElement("body",this);
+ context.getExternalContext().redirect(url);
}
}
Show replies by date