Repository navigation
Render group items with the component which produced them - #6190
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.f:selectItemGroups: each option or input is started with the nestedf:selectItem/f:selectItemswhich produced it. The groupvaris bound to the member which produced the group, and the nestedvarto its current element. The second walk over the children runs only when a nested child has pass-through attributes.SelectManyCheckboxListRenderer(and soRadioRenderer) prepares the input attributes again after each group.Known limit: a nested
StreamorIteratorvalue throws once a nested child has pass-through attributes. A top-levelf:selectItemsalready rejects these.Tests: Issue6176IT and Issue6177IT updated, new IT issue6186, which fails on origin/4.0. The 5.0-only
MapIteratornull rules follow in the upmerge.🤖 Generated with Claude Opus 5.5