Skip to content

Render group items with the component which produced them - #6190

Merged
BalusC merged 1 commit into
4.0from
issue_6186
Nov 20, 2026
Merged

BalusC merged 1 commit into
4.0from
issue_6186

Conversation

@BalusC

@BalusC BalusC commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #6186

The options of an optgroup, and the inputs of a nested table or list, carried the pass-through attributes of the component which produced the group. Per jakartaee/faces#2284 these belong on the outer-most element of the group only.

  • Group from f:selectItem/f:selectItems: each option is started with null. Each input keeps the pass-through attributes of the select component, as the 4.x TCK requires.
  • Group from f:selectItemGroups: each option or input is started with the nested f:selectItem/f:selectItems which produced it. The group var is bound to the member which produced the group, and the nested var to its current element. The second walk over the children runs only when a nested child has pass-through attributes.
  • SelectManyCheckboxListRenderer (and so RadioRenderer) prepares the input attributes again after each group.

Known limit: a nested Stream or Iterator value throws once a nested child has pass-through attributes. A top-level f:selectItems already rejects these.

Tests: Issue6176IT and Issue6177IT updated, new IT issue6186, which fails on origin/4.0. The 5.0-only MapIterator null rules follow in the upmerge.

🤖 Generated with Claude Opus 5.5

The options of an optgroup, and the inputs of a nested table or list,
were started with the component which produced the group. They carried
its pass-through attributes, which belong on the outer-most element of
the group only, per jakartaee/faces#2284.

Items of a group produced by f:selectItem or f:selectItems are now
started with null. Each input of such a group keeps the pass-through
attributes of the select component, as the 4.x TCK requires.

Items of a group produced by f:selectItemGroups are now started with
the nested f:selectItem or f:selectItems which produced them. When a
nested child has pass-through attributes, MenuRenderer walks the
children again with SelectItemsIterator, in lockstep with the items of
the group. The var of f:selectItemGroups is bound to the member which
produced the group, and the var of the nested child to its current
element. A nested Stream or Iterator value then throws, as it already
does on a top-level f:selectItems.

SelectManyCheckboxListRenderer prepares the input attributes again
after each group, so that the items after a group carry those of
f:selectItems again.

Updates Issue6176IT and Issue6177IT to the new behavior and adds IT
issue6186, which fails on origin/4.0.

Closes #6186

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BalusC BalusC added this to the 4.0.31 milestone Nov 20, 2026
@BalusC
BalusC merged commit 1b71730 into 4.0 Nov 20, 2026
2 checks passed
@BalusC
BalusC deleted the issue_6186 branch November 20, 2026 18:23
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

Successfully merging this pull request may close these issues.

1 participant