Bug 312980 - [JSF2.0] "attrs" JSF 2.0 virtual property of a component available in pre-JSF2.0 apps
Summary: [JSF2.0] "attrs" JSF 2.0 virtual property of a component available in pre-JSF...
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.0 M4   Edit
Assignee: jsf inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-05-14 17:18 EDT by Gerry Kessler CLA
Modified: 2017-12-19 13:26 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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