jsf.ajax.request source should accept form element
--------------------------------------------------

                 Key: MYFACES-2793
                 URL: https://issues.apache.org/jira/browse/MYFACES-2793
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.1-SNAPSHOT
         Environment: MyFaces 2.0.1-SNAPSHOT, ICEfaces 2.0
            Reporter: Ted Goddard



In some cases it is useful to directly pass the form element as the "source" 
parameter for   jsf.ajax.request(source, |event|, { |OPTIONS| });

The following modification to _Dom.js provides this feature:

    fuzzyFormDetection : function(elem) {

...
        //before going into the more complicated stuff we try the simple 
approach
        if (!_Lang.isString(elem)) {
            if (_Lang.equalsIgnoreCase(elem.tagName, "form"))  {
                return elem;
            }
            return this.getParent(elem, "form");
        }



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to