You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2022/11/15 16:31:08 UTC

[myfaces] branch main updated: MYFACES-4501 follw up: Remove writePreamble since it's now done in the startDocument call (#384)

This is an automated email from the ASF dual-hosted git repository.

melloware pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/main by this push:
     new 58d7ecbfd MYFACES-4501 follw up: Remove writePreamble since it's now done in the startDocument call (#384)
58d7ecbfd is described below

commit 58d7ecbfd890fa9d6eaa63e5495897bc190c0f5b
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Tue Nov 15 11:31:03 2022 -0500

    MYFACES-4501 follw up: Remove writePreamble since it's now done in the startDocument call (#384)
---
 .../org/apache/myfaces/context/servlet/PartialViewContextImpl.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
index b66eda47a..e23e2fe3f 100644
--- a/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
@@ -431,8 +431,7 @@ public class PartialViewContextImpl extends PartialViewContext
         try
         {
             String currentEncoding = writer.getCharacterEncoding();
-            writer.writePreamble("<?xml version=\"1.0\" encoding=\""+
-                (currentEncoding == null ? "UTF-8" : currentEncoding) +"\"?>");
+
             writer.startDocument();
             
             writer.writeAttribute("id", viewRoot.getContainerClientId(context),"id");