Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12328

Add a rich:jquery function in EL to call a jQuery object from a JSF id

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.3.0.M1
    • Component/s: component
    • Labels:
    • Environment:

      All

      Description

      Currently, if you want to retrieve a jQuery object from a JSF id, you need to write something like :

      $('##{rich:clientId('your-id')}')
      

      And that's no even true because the moment you have nested components, there will probably have ":" separators, but that's a selector caracter in jQuery selectors, so it doesn't work.

      It would be great to have a shorcut like :

      #{rich:jquery('your-id']}
      

      which is more clear and take care of ":" caracters.

      (please, assign me the issue, I've already written the patch)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč
                  Reporter:
                  paul.dijou Paul Dijou
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: