Skip to content

Discrepancy of client-ID, prependID and findComponent #573

@eclipse-faces-bot

Description

@eclipse-faces-bot

see https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1153

Creating a form with prependId="false" will lead to client-IDs of child components of this form where the
path to be passed to findComponent() being different then the client-ID.
This leads to confusion, especially now with compositecomponents and f:ajax where referencing
components outside of the same namingcontainer will be used more often.

This could for example be solved by making the form not behave like a namingcontainer in
findComponent() if prependId == false.

Environment

Operating System: All
Platform: All
URL: https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1153

Affected Versions

[2.1]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions