Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2793

jsf.ajax.request source should accept form element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1-SNAPSHOT
    • 2.0.1
    • JSR-314
    • None
    • MyFaces 2.0.1-SNAPSHOT, ICEfaces 2.0

    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 elem; }

      return this.getParent(elem, "form");
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            tedgoddard Ted Goddard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified