Details
Description
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 this.getParent(elem, "form");
}