[ http://issues.apache.org/jira/browse/MYFACES-217?page=comments#action_64641 ] Ihab A.B. Awad commented on MYFACES-217: ----------------------------------------
Please mark this "not a bug". I must have missed something while diagnosing this problem. Looking at the document source, the output XML tree generated by the JSF RI and MyFaces are functionally identical. The HTTP headers (especially "Content-type") are also identical. Using Konqueror 3.2.1, *both* the JSF RI and MyFaces output render correctly. Using FireFox 1.0.2, the JSF RI output renders correctly, but the MyFaces output does not. Once again, clearly, this is not a bug in MyFaces. Also, I suspect that the render-kit is not generating the top-level HTML elements for a UIViewRoot because it is expected to be embedded as an <f:view> inside a JSP page, which should already contain these. Thus, to do what I am doing, I now understand that I need to attach a custom renderer somewhere in the component tree. > Programmatically created UIViewRoot not rendered correctly > ---------------------------------------------------------- > > Key: MYFACES-217 > URL: http://issues.apache.org/jira/browse/MYFACES-217 > Project: MyFaces > Type: Bug > Versions: 1.0.9 beta > Environment: JDK 1.5.0_01, Linux/x86, Tomcat 5.5.7 (NetBeans bundled), > Jakarta taglibs 1.1.1 > Reporter: Ihab A.B. Awad > Priority: Critical > > I deployed the Hans Bergsten JSF examples, version 1.0.2, using MyFaces, and > tried running the "View Created By The ClassViewHandler" example from Chapter > 15. > Note that I had to modify the code so that it created HtmlForm components, > not UIForm components, as a workaround to MYFACES-216. > The result sent to my browser was a plain XML fragment with <form> as the > top-level element, not a correct [X]HTML tree. Here is a piece of the output > -- > <form id="_id0" name="_id0" > method="post" action="/jsfbook/subscribe.faces" > enctype="application/x-www-form-urlencoded"> > <table> > ...SNIPPED... > </table> > <script type="text/javascript"> > ...SNIPPED... > </script> > </form> > I have verified that the code does not break under JSF RI 1.1.01. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira