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

[jira] [Created] (MYFACES-4497) In h:inputTextArea comments are shown as value

Vitaly Sidorov created MYFACES-4497:
---------------------------------------

             Summary: 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


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)