Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Component/s: Framework
-
Labels:None
-
Environment:icefaces2
-
ICEsoft Forum Reference:
Description
CoreComponentUtils.findComponent(UIComponent uiComponent, String componentId) has a bug where the id matching uses String.endsWith, which erroneously matches components when a component id ends with a substring that is equal to the id of another component. A concrete example is in the forum post.
} else if (child.getId() != null && componentId.endsWith(child.getId())) {
} else if (child.getId() != null && componentId.endsWith(child.getId())) {
Activity
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Assignee Priority | P1 | |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #22444 | Tue Sep 28 09:16:07 MDT 2010 | deryk.sinotte | |
Files Changed | ||||
![]() |
Attachment | findcomp.zip [ 12577 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Fix Version/s | 2.0.0 [ 10230 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
Source and pre-built .war file for Glassfish 3 that exercises findComponent in UIData scenarios.