Javascript becomes unusable

Marco DE BOOIJ <[email protected]> Thu, 20 Feb 2025 14:21:10 +0100
Newsgroups gmane.comp.java.openejb.user
Message-ID <59b8c3a2-5b39-4d1d-a7cd-af5b7026d873__728.72670586861$1740057866$gmane$org@gmail.com>
I am busy to migrate from Tomee 8 to Tomee 10. Less easy than expected. 
Now I am able to run an application on Tomee 10, but a strange 
translation is done. All LF characters are  replaced by &#x0a;. This is 
the HTML code for the LF. This is annoying, but the pages get displayed 
correctly. I also notice that all " are replaced by '. The bad part is 
that it replaces some characters in my JavaScript, which makes it unusable.

On Tomee 8 it works. Here is a snippet:

                   <div class="field is-grouped">
                     <p class="control"><a href="#" onclick="return 
myfaces.oam.submitForm('cacheForm','cacheForm:bekijkProperties');" 
id="cacheForm:bekijkProperties" class="button">Bekijken</a>
                     </p>
                     <p class="control"><a href="#" onclick="return 
myfaces.oam.submitForm('cacheForm','cacheForm:clearProperties');" 
id="cacheForm:clearProperties" class="button">Leegmaken</a>
                     </p>
                   </div>

On Tomee 10 the same part is:

             <div class='field is-grouped'>&#x0a;
              <p class='control'>
               <script type='text/javascript' 
src='/doos/jakarta.faces.resource/faces.js.xhtml?ln=jakarta.faces'></script>
               <a href='#' onclick='return 
myfaces.oam.submitForm(&#x27;cacheForm&#x27;,&#x27;cacheForm:bekijkI18nTeksten&#x27;);' 
id='cacheForm:bekijkI18nTeksten' class='button'>Bekijken</a>&#x0a;
              </p>&#x0a;
              <p class='control'>
               <a href='#' onclick='return 
myfaces.oam.submitForm(&#x27;cacheForm&#x27;,&#x27;cacheForm:clearI18nTeksten&#x27;);' 
id='cacheForm:clearI18nTeksten' class='button'>Leegmaken</a>&#x0a;
              </p>&#x0a;
             </div>&#x0a;

Did I miss some parameter to be set?


Kind regards,

Marco