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

Melloware commented on MYFACES-4733:
------------------------------------

Changing this would cause issues like this one: 
https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4497

Read the comments there

> HtmlGroupRendererBase encodes opening tag in encodeEnd (empty encodeBegin), 
> breaking subclass extensibility and causing disordered output
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4733
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4733
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.11
>         Environment: Java 17
> apache-tomee-plume-8.0.17
> javaee-api:8.0.1,
> myfaces-api:2.3.11
>            Reporter: glynn leininiger
>            Priority: Major
>
> {{HtmlGroupRendererBase}} leaves {{encodeBegin()}} empty and writes the 
> opening tag/attributes in {{{}encodeEnd(){}}}. This violates the standard JSF 
> rendering lifecycle and prevents subclasses from wrapping content or 
> injecting markup in {{{}encodeBegin(){}}}. Result: when composing with a 
> {{{}HtmlPanelGroup{}}}, the group element is emitted late and can’t act as 
> the intended wrapper.
> *Expected*
>  * {{encodeBegin()}} writes the start element and attributes.
>  * {{encodeEnd()}} closes the element.
> *Actual*
>  * {{encodeBegin()}} emits nothing.
>  * The opening tag is written in {{encodeEnd()}}
>  * Subclasses cannot reliably wrap content or prepend markup using 
> {{{}encodeBegin(){}}}.



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

Reply via email to