Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.8 beta
-
None
-
None
-
None
Description
(See original email chain from myfaces mailing list --> http://www.mail-archive.com/myfaces-user%40incubator.apache.org/msg00662.html)
It would be nice if the MyFaces extended version of the basic JSF tags supported a "directId" attribute. This attribute would allow the JSP programmer to directly specify the id attribute of the HTML element (instead of relying on the one generated by the faces component using the FacesContext.)
This would allow for the standard use of getElementById() in client-side javascript functions. Currently available workarounds are too cumbersome.
I envision this would require (at a minimum) changing some of the HTML rendering code (both the encode() and decode() logic.) As Craig has pointed out, there will also be challenges in implementing this for components that render more than one element from the same component (such as UIData).