Add a rich:jquery function in EL to call a jQuery object from a JSF
id
----------------------------------------------------------------------
Key: RF-12328
URL:
https://issues.jboss.org/browse/RF-12328
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component
Environment: All
Reporter: Paul Dijou
Assignee: Lukáš Fryč
Priority: Minor
Labels: jquery
Fix For: 4.3.0.Milestone1
Currently, if you want to retrieve a jQuery object from a JSF id, you need to write
something like :
{code:xml}
$('##{rich:clientId('your-id')}')
{code}
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 :
{code:xml}
#{rich:jquery('your-id']}
{code}
which is more clear and take care of ":" caracters.
(please, assign me the issue, I've already written the patch)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: