You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change implemented in jakarta.faces-4.0.7.jar broke reading the default attribute value in composite components with default value in xhtml template.
Reading UIComponentBase.getAttributes().get("attribute") returns null if the attribute is not redefined at the xhtml page with componente usage (always need to redefine, ignores the default value defined in custom componente template).
To Reproduce
Steps to reproduce the behavior:
Create a composite component with a basic property:
<cc:attribute name="customRole" required="false" default="user" type="java.lang.String" />
Use in a xhtml page without configuring customRole.
Try to read in java class of the component this.getAttributes().get("customRole").
See error
Expected behavior
It's expected to get the default value for the attribute.
Screenshots
Desktop (please complete the following information):
OS: Manjaro Linux
Browser: Chrome
Version: 126.0.6478.126
Additional context
Bug found using Wildfly 32.0.1.Final. Rolling back to jakarta.faces-4.0.6.jar keeps the component working.
Describe the bug
The change implemented in jakarta.faces-4.0.7.jar broke reading the default attribute value in composite components with default value in xhtml template.
Reading UIComponentBase.getAttributes().get("attribute") returns null if the attribute is not redefined at the xhtml page with componente usage (always need to redefine, ignores the default value defined in custom componente template).
To Reproduce
Steps to reproduce the behavior:
<cc:attribute name="customRole" required="false" default="user" type="java.lang.String" />
Expected behavior
It's expected to get the default value for the attribute.
Screenshots
Desktop (please complete the following information):
Additional context
Bug found using Wildfly 32.0.1.Final. Rolling back to jakarta.faces-4.0.6.jar keeps the component working.
customComponent.xhtml:
CustomComponent.java:
The text was updated successfully, but these errors were encountered: