faces icon indicating copy to clipboard operation
faces copied to clipboard

Adjust spec to state that #{cc} must be resolved using EL instead of CDI

Open BalusC opened this issue 11 months ago • 0 comments

Moving #{cc} resolution from EL to CDI during Faces 4.0 was a mistake. This primarily because within a single EL resolution, the #{cc} can refer different composite components depending on the nesting level and whether a nested one references the attribute of a parent one. This worked with Weld because it re-resolved the #{cc} on every access, but not with OWB because it caches the result for the duration of the single EL resolution. This ultimately caused an infinite loop when attempting to reference the #{cc} of the parent composite. There's nothing in CDI spec which forbids OWB's behavior.

Related issue ticket: https://github.com/jakartaee/faces/issues/1564#issuecomment-2628984593

Mojarra impl fix: https://github.com/eclipse-ee4j/mojarra/pull/5549

BalusC avatar Feb 01 '25 14:02 BalusC