[
https://issues.jboss.org/browse/RF-12590?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč edited comment on RF-12590 at 11/12/12 3:46 AM:
-----------------------------------------------------------
QUnit tests should be written to guard this feature.
was (Author: lfryc):
The QUnit tests should be written to guard this feature.
Unified approach for finding input element under component's
root
-----------------------------------------------------------------
Key: RF-12590
URL:
https://issues.jboss.org/browse/RF-12590
Project: RichFaces
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: core
Affects Versions: 4.3.0.M3
Reporter: Lukáš Fryč
Assignee: Lukáš Fryč
Priority: Minor
Fix For: 4.3.0.M3
Some components like placeholder, focus and whole CSV use alghoritms for searching for
appropriate input under a root of a DOM element tree (known by JSF component's
clientId).
This alghoritm is used in CSV:
https://github.com/richfaces/components/blob/develop/validator/ui/src/mai...
Alghoritm should be generalized and exposed as window.RichFaces (richfaces.js) function,
e.g.:
{code:javascript}
window.RichFaces.findInputs = function(clientId, callback);
{code}
The callback will be called for each found input (the jQuery collection handle will be
returned).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira