From ced7bcb34e70e02229f241ff825dac476efac136 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Xavier=20Fran=C3=A7ois?= <xfs@kereval.com>
Date: Thu, 7 Jul 2016 08:13:57 +0000
Subject: [PATCH] Patch "?" display problem

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@53081 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
---
 .../src/main/webapp/messages/commonDownload.xhtml         | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gazelle-proxy-common-war/src/main/webapp/messages/commonDownload.xhtml b/gazelle-proxy-common-war/src/main/webapp/messages/commonDownload.xhtml
index 9c41d58a..7f441fdf 100644
--- a/gazelle-proxy-common-war/src/main/webapp/messages/commonDownload.xhtml
+++ b/gazelle-proxy-common-war/src/main/webapp/messages/commonDownload.xhtml
@@ -93,13 +93,14 @@
         </h:panelGroup>
 
         <h:form id="insertForm">
+            <h:panelGroup rendered="#{messageBean.shouldDisplayHL7MessageContent()}">
+                <pre><h:outputText value="#{messageBean.message.getMessageReceivedAsString()}"/></pre>
+            </h:panelGroup>
+            <h:panelGroup rendered="#{!messageBean.shouldDisplayHL7MessageContent()}">
             <div style="font-family: monospace;" class="well">
                 <gdk:insert rendered="#{messageBean.shouldDisplayMessageContent()}"
                             content="#{messageBean.prettyFormat(messageBean.message.getMessageReceivedAsString())}"
                             highlight="xml"/>
-                <gdk:insert rendered="#{messageBean.shouldDisplayHL7MessageContent()}"
-                            content="#{messageBean.message.getMessageReceivedAsString()}"
-                            highlight="xml"/>
                 <gdk:insert rendered="#{messageBean.shouldDisplayDicomMessageContent()}"
                             content="#{messageBean.message.getDicomMessageReceivedAsString()}"/>
                 <h:outputText id="text"
@@ -109,6 +110,7 @@
                             content="#{messageBean.message.getRawMessageReceivedAsString()}"
                             highlight="beanshell"/>
             </div>
+            </h:panelGroup>
         </h:form>
 
     </s:decorate>
-- 
GitLab