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

Volodymyr Siedlecki edited comment on MYFACES-4477 at 10/11/22 12:45 AM:
-------------------------------------------------------------------------

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: 
```
{code:java}
<html xmlns="http://www.w3.org/1999/xhtml">
<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;{code}

```

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


was (Author: volosied):
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)

Reply via email to