Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312980

Summary: [JSF2.0] "attrs" JSF 2.0 virtual property of a component available in pre-JSF2.0 apps
Product: [WebTools] Java Server Faces Reporter: Gerry Kessler <gerry.kessler>
Component: JSF ToolsAssignee: jsf inbox <jsf-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ian.trimble, raghunathan.srinivasan, yurykats
Version: 3.2Keywords: plan
Target Milestone: 3.4.0 M4   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/114289
https://git.eclipse.org/c/jsf/webtools.jsf.git/commit/?id=79ca2e78b30dd1ea4984ad543ecaf51f99358456
Whiteboard:

Description Gerry Kessler CLA 2010-05-14 17:18:36 EDT
JSF2.0 introduced "attrs" property on a UIComponent.   This is a shorthand for the attributes property of a UIComponent, but should only be available in JSF2.0 apps.

Steps:
1) Create JSF 1.x DWP
2) Create bean with a  UIComponent property
3) refer to this bean and property in EL expression in a JSP page

Note: content assist on the uicomponent property shows component properties plus "attrs"
Comment 1 Yury Kats CLA 2010-05-14 17:45:16 EDT
Is this side effect of bug 299813? It does say: "... ensuring that they are not present in a JSF1.x context." though.
Comment 2 Gerry Kessler CLA 2010-05-14 17:52:55 EDT
Yes it is a side effect of bug 299813.  I have ensured that the JSF2.0 implicit variables are not present, which you can verify for yourself.   This is a special case of a "property" becoming available outside of a JSF2.0 context.
Comment 3 Ian Trimble CLA 2011-10-27 18:21:12 EDT
Fix comitted to HEAD at 2011/10/27 03:20PM PDT.
Comment 4 Ian Trimble CLA 2011-10-28 19:55:07 EDT
Reworked after finding a case where the fix didn't work. Updated corresponding JUnit tests.
Committed to HEAD at 2011/10/28 04:52PM PDT.
Comment 5 Raghunathan Srinivasan CLA 2011-12-08 13:42:50 EST
Update Target Milestone
Comment 6 Eclipse Genie CLA 2017-12-18 20:17:19 EST
New Gerrit change created: https://git.eclipse.org/r/114289