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

Melloware commented on MYFACES-4497:
------------------------------------

I know this doesn't fix it but don't you want this in your web.xml?  You 
shouldn't want comments ever rendered in your HTML right?
{code:java}
    <context-param>
        <param-name>javax.faces..FACELETS_SKIP_COMMENTS</param-name>
        <param-value>true</param-value>
    </context-param>{code}

> In h:inputTextArea comments are shown as value
> ----------------------------------------------
>
>                 Key: MYFACES-4497
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4497
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.3-next-M7
>            Reporter: Vitaly Sidorov
>            Priority: Major
>
> Problem:
> If the composite component has an h:inputTextArea inside which there is a 
> comment, then this comment will be displayed in html as the value of the 
> component.
> Playback:
> 1. We have a composite component
>  
> {code:java}
> <?xml version="1.0" encoding="windows-1251"?>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:h="http://xmlns.jcp.org/jsf/html";
>       xmlns:composite="http://xmlns.jcp.org/jsf/composite";>
> <composite:interface name="testTextArea"
>                      shortDescription="test">
> </composite:interface>
> <composite:implementation>
>     <h:inputTextarea id="test_area"
>                      rows="5"
>                      cols="8"
>                      value="#{testBean.testInfo}">
>         <!-- test -->
>     </h:inputTextarea>
> </composite:implementation>
> </html>
> {code}
>  
> 2. Rendered html
> {code:java}
> <textarea id="j_id_26:test_area" name="j_id_26:test_area" cols="8" rows="5"> 
> &lt;!-- test --&gt;</textarea>{code}
> Comment:
> in version 2.3-next-M6 - the comment is rendered before the textarea (not 
> inside).



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

Reply via email to