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

Thomas Andraschko commented on MYFACES-4733:
--------------------------------------------

I think we fixed this for 2.3-next and 4.0+, melloware?
We should not backport it to stable versions like 2.3.

> 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