You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ihab A.B. Awad (JIRA)" <my...@incubator.apache.org> on 2005/04/27 22:11:24 UTC

[jira] Created: (MYFACES-217) Programmatically created UIViewRoot not rendered correctly

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


[jira] Commented: (MYFACES-217) Programmatically created UIViewRoot not rendered correctly

Posted by "Ihab A.B. Awad (JIRA)" <my...@incubator.apache.org>.
     [ 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


[jira] Closed: (MYFACES-217) Programmatically created UIViewRoot not rendered correctly

Posted by "Grant Smith (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-217?page=all ]
     
Grant Smith closed MYFACES-217:
-------------------------------

     Assign To: Grant Smith
    Resolution: Won't Fix

> 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
>     Assignee: Grant Smith
>     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