]
Lukáš Fryč updated RF-12848:
----------------------------
Assignee: (was: Lukáš Fryč)
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
Priority: Critical
Fix For: 4.3.2, 5-Tracking
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: