[richfaces-issues] [JBoss JIRA] (RF-12848) Error "source is not defined" after richfaces-jsf-event.js merge

Torben Greiser (JIRA) jira-events at lists.jboss.org
Sat Mar 16 08:44:41 EDT 2013


Torben Greiser created RF-12848:
-----------------------------------

             Summary: Error "source is not defined" after richfaces-jsf-event.js merge
                 Key: RF-12848
                 URL: https://issues.jboss.org/browse/RF-12848
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: core
    Affects Versions: 4.3.1
            Reporter: Torben Greiser


Commit 9255380d626227d909bbcd59ea3bc604966ea5bb breaks the following jsf.ajax.request:

{code}
jsf.ajax.request("MyContainer:MySelectionForm", "valueChange", {});
{code}

In <a4j:log/> the following error is displayed:

{code}
richfaces.queue: ajax submit error: source is not defined
{code}

After inspecting richfaces.js I located the cause of the error:

{code}
var getFormElement = function(sourceElement) {
  if ($(sourceElement).is('form')) {
    return source;
  } else {
    return $('form').has(sourceElement).get(0);
  }
}; 
{code}

First if-statement evaluates to true, returning source, which itself is not defined:

{code}
ReferenceError: source is not defined
{code}

--
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


More information about the richfaces-issues mailing list