Skip to content

JSF: avoid suggesting UIComponent default attributes on non-component tags - #9606

Merged
matthiasblaesing merged 1 commit into
apache:masterfrom
NicolaIsotta:taghandler-attrs
Sep 22, 2026
Merged

matthiasblaesing merged 1 commit into
apache:masterfrom
NicolaIsotta:taghandler-attrs

Conversation

@NicolaIsotta

@NicolaIsotta NicolaIsotta commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

TagImpl no longer inherits generic UIComponent attributes (like 'rendered') across all facelet tags. Introduce a ComponentTag wrapper so default component attributes are only provided for actual UI/composite components.

Add tests for the corrections.

@NicolaIsotta

Copy link
Copy Markdown
Contributor Author

To give a visual example, these are the attributes suggestions of f:ajax in NB 31:
image
While these are the suggestions with the PR applied:
image

For reference: https://jakarta.ee/specifications/faces/4.1/vdldoc/f/ajax

@mbien mbien added Java EE/Jakarta EE [ci] enable enterprise job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Sep 10, 2026
@apache apache locked and limited conversation to collaborators Sep 10, 2026
@apache apache unlocked this conversation Sep 10, 2026
@NicolaIsotta

Copy link
Copy Markdown
Contributor Author

BTW, I managed to make the web.jsf.editor unit tests work. Can I add another commit to this PR, or is it better to open a new one?

@matthiasblaesing

Copy link
Copy Markdown
Contributor

BTW, I managed to make the web.jsf.editor unit tests work. Can I add another commit to this PR, or is it better to open a new one?

Please open a new PR for that unless the changes depend on each other. Thank you!

@matthiasblaesing matthiasblaesing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense to me. I left an inline comment and a clarification request to help my understanding. Thank you!

@NicolaIsotta

Copy link
Copy Markdown
Contributor Author

BTW, I managed to make the web.jsf.editor unit tests work. Can I add another commit to this PR, or is it better to open a new one?

Please open a new PR for that unless the changes depend on each other. Thank you!

created #9617 - it might be worth merging that (and enabling web.jsf.editor tests in CI) before this

… tags

TagImpl no longer inherits generic UIComponent attributes (like 'rendered')
across all facelet tags. Introduce a ComponentTag wrapper so default
component attributes are only provided for actual UI/composite components.

Add unit tests for the corrections, now CI runs them
@matthiasblaesing
matthiasblaesing merged commit 6f917e1 into apache:master Sep 22, 2026
29 checks passed
@matthiasblaesing

Copy link
Copy Markdown
Contributor

Thank you.

@mbien mbien added this to the NB32 milestone Sep 22, 2026
@NicolaIsotta
NicolaIsotta deleted the taghandler-attrs branch September 22, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Java EE/Jakarta EE [ci] enable enterprise job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants