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

Brian Leathem (JIRA) jira-events at lists.jboss.org
Fri Mar 22 19:11:42 EDT 2013


     [ https://issues.jboss.org/browse/RF-12848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem reassigned RF-12848:
----------------------------------

    Assignee: Lukáš Fryč


Please assess and schedule as required.
                
> 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
>            Assignee: Lukáš Fryč
>
> 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