You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volodymyr Siedlecki (Jira)" <de...@myfaces.apache.org> on 2022/10/11 00:45:00 UTC

[jira] [Commented] (MYFACES-4477) Fix Programmatic Views in Faces 4.0 (Views Rendered via Java)

    [ https://issues.apache.org/jira/browse/MYFACES-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615401#comment-17615401 ] 

Volodymyr Siedlecki commented on MYFACES-4477:
----------------------------------------------

Will have a PR up soon, but we will need to discuss escaping certain characters as I found out MyFaces does and Mojarra does not. 

Output looks like when when escaped: 
```
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
<body>
    <form id="form" name="form" method="post" action="/test-faces40-javaPage/hello.xhtml" enctype="application/x-www-form-urlencoded">
        <span id="form:message"></span>
        <input id="form:button" name="form:button" type="submit" value="Do action"/>
        <input type="hidden" name="form_SUBMIT" value="1"/>
        <input type="hidden" name="jakarta.faces.ViewState" id="j_id__v_0:jakarta.faces.ViewState:1" value="NjM3ZGNhYjVmZGFjY2IyMjAwMDAwMDAx" autocomplete="off"/>
    </form>
</body>
&lt;/html&gt;
```

Browsers then wrap this around with their own <html> tags.

> Fix Programmatic Views in Faces 4.0 (Views Rendered via Java)
> -------------------------------------------------------------
>
>                 Key: MYFACES-4477
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4477
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 4.0.0-RC1
>            Reporter: Volodymyr Siedlecki
>            Assignee: Volodymyr Siedlecki
>            Priority: Major
>
> Spec Issue: [https://github.com/jakartaee/faces/issues/1581]
> When running the TCK app, MyFaces produces a 404.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)