Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-70

Add forceId support to all extended components

    XMLWordPrintableJSON

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).

      Attachments

        Activity

          People

            matzew Matthias Wessendorf
            schof Sean Schofield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: