Re: Javascript becomes unusable
Richard Zowalla <[email protected]> Thu, 20 Feb 2025 18:58:58 +0100
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <[email protected]> |
Which flavour of TomEE? Maybe put up a sample. Gruß Richard Am 20. Februar 2025 14:21:10 MEZ schrieb Marco DE BOOIJ <[email protected]>: >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 
. 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'>
 > <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('cacheForm','cacheForm:bekijkI18nTeksten');' id='cacheForm:bekijkI18nTeksten' class='button'>Bekijken</a>
 > </p>
 > <p class='control'> > <a href='#' onclick='return myfaces.oam.submitForm('cacheForm','cacheForm:clearI18nTeksten');' id='cacheForm:clearI18nTeksten' class='button'>Leegmaken</a>
 > </p>
 > </div>
 > >Did I miss some parameter to be set? > > >Kind regards, > >Marco