glynn leininiger created MYFACES-4733:
-----------------------------------------

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


{{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