Hi all, We fixed this problem by providing a DTD in the classpath (org/apache/myfaces/resource/default.dtd) that defines all required entities (a copy of the DTD used by Mojarra 2.0.2).
Best regrads, Michael Am Freitag 18 Januar 2013, 11:01:27 schrieb Michael Möller: > Hi all, > > We are tying to migrate from Mojarra 2.0.2 to MyFaces 2.1.10 and made a > strange observation regarding entities. Any entities are accepted by the > parser but only valid XML entities are rendered into the output. E.g. > '>' or ' ' are rendered into the output as expected, but ' ' > or 'ö' are skipped. Even '&foobar;' is accepted but not rendered. > > We are using the doctype definition: > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > > > If we add entity definitions directly to the doctype declaration then these > entities are rendered correctly. E.g. > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ <!ENTITY nbsp > " "> > ]> > will ensure that is rendered correctly. But for sure we can not add > all valid xhtml1-transitional entities to our doctype declaration. > > Is there a configuration switch for getting the Mojarra behavior without > changing all XHTML files? > > Thanks in advance. > > Best regards, > Michael > > > -- > Michael Möller, Dipl.-Inform. - OPS Software Development > CeWe Color AG & Co. OHG, Meerweg 30-32, 26133 Oldenburg > mail: michael.moel...@cewecolor.de / tel.: +49 441 404-1514 > > OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548; > Persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe Color > Stiftung, Oldenburg Vorstand: Dr. Rolf Hollander, Vorsitzender; Harald H. > Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries; Geschäftsführer: > Dr. Reiner Fageth, Andreas F.L. Heydemann, Dr. Olaf Holzkämper > > Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg, > Registergericht Oldenburg HR B 2956 Vorstand: Dr. Rolf Hollander, > Vorsitzender; Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf > Holzkämper Aufsichtsrat: Otto Korte, Vorsitzender -- Michael Möller, Dipl.-Inform. - OPS Software Development CeWe Color AG & Co. OHG, Meerweg 30-32, 26133 Oldenburg mail: michael.moel...@cewecolor.de / tel.: +49 441 404-1514 OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548; Persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe Color Stiftung, Oldenburg Vorstand: Dr. Rolf Hollander, Vorsitzender; Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries; Geschäftsführer: Dr. Reiner Fageth, Andreas F.L. Heydemann, Dr. Olaf Holzkämper Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg, Registergericht Oldenburg HR B 2956 Vorstand: Dr. Rolf Hollander, Vorsitzender; Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf Holzkämper Aufsichtsrat: Otto Korte, Vorsitzender