Mantis - Resin
Viewing Issue Advanced Details
1245 major always 07-11-06 17:35 06-04-07 14:25
svadu  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.1.1  
0001245: Problem in resulting html (xhtml) with facelets
I have a strange problem with facelets. Here is the source code of very simple xhtml file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> [^]

<html xmlns="http://www.w3.org/1999/xhtml" [^]
    xmlns:ui="http://java.sun.com/jsf/facelets" [^]
    xmlns:h="http://java.sun.com/jsf/html" [^]
    xmlns:f="http://java.sun.com/jsf/core"> [^]

    <head>
        <script type="text/javascript">
            //<![CDATA[
                var i;
            //]]>
        </script>
    </head>
</html>

And the rendered page looks like this:

<html xmlns="http://www.w3.org/1999/xhtml"> [^]

    <head>
        <script type="text/javascript"><!--
<![CDATA[
            //
                var i;
            //]]>
        
//--></script>
    </head>
</html>

As you can see DOCTYPE is skipped also the //<![CDATA[ and //]]> are misplaced. This is resin-only issue. It has works correctly under Tomcat and WebLogic.

I tried this with MyFaces1.1.5/Facelets (all versions), with MyFaces 1.1.3/Facelets and JSF-RI 1.2/Facelets.

Complete war file with the example can be downloaded from http://mastersad.homelinux.net/test.war [^]

Notes
(0001420)
svadu   
07-20-06 13:13   
Btw, I found that there is a problem with the xml parser from Resin. As soon as I supplied xml implementation from Apache and configured it in resin-web.xml I didn't encounter the problem.
(0001997)
ferg   
06-04-07 14:25   
3.1.1 uses JDK's xml parser by default.