Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't obtain default attribute value for composite component from attributes map #5512

Closed
mnyakushev opened this issue Oct 14, 2024 · 2 comments

Comments

@mnyakushev
Copy link

Describe the bug

In latest versions of mojarra the behavior of composite component attributes map (UIComponent::getAttributes) was changed.

In Payara server 6.2024.9 and above (Mojarra 4.0.7.payara-p1) I couldn't obtain literal default attribute value from attributes map.
In Payara server 6.2024.8 and below (Mojarra 4.0.0.payara-p2) I could do this.

Looks like it's because of this changes (273b9ea)

To Reproduce

  1. Download reproducer mojarra-test.zip
  2. Build it
  3. Deploy to latest Payara Server CE (6.2024.10)
  4. Open link https://localhost:8080 (you don't see default attribute value on page)
  5. Deploy to Payara Server CE 6.2024.8
  6. Open link https://localhost:8080 (you will see default attribute value on page)

Expected behavior

I need clarification is it a bug or it's a feature?
Is the only correct way to get the attribute value now - via an EL expression like #{cc.attrs.attributeName}?

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: chrome
  • Version: 129.0.6668.100
@BalusC
Copy link
Contributor

BalusC commented Oct 14, 2024

It's indeed a bug which was already reported as #5460 and fixed in 4.0.8 which was released at 1 sep 2024.

@BalusC BalusC closed this as completed Oct 14, 2024
@mnyakushev
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants