myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (Commented) (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3401) Issue with RichFaces fileUpload component using MyFaces 2.0
Date Mon, 12 Dec 2011 21:01:33 GMT


Werner Punz commented on MYFACES-3401:

Ok I did a quick preliminary look, the issue is that richfaces basically introduces for the
ajax upload its own request cycle and then calls the response with an empty context. Now I
dont rely on that case because I assume that the context is always filled.
Now the spec clearly states that following must be given to the response:

    An object containing the request context, including the following properties: the source
element, per call onerror callback function, and per call onevent callback function.

I richfaces seems to rely here on an error in mojarra anyway. Either way I will clear this
up if an empty context is allowed, if not then we have to fix the issue in richfaces. Otherwise
I can deal with an empty context in my code.

> Issue with RichFaces fileUpload component using MyFaces 2.0
> -----------------------------------------------------------
>                 Key: MYFACES-3401
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.9
>            Reporter: Paul Nicolucci
>            Assignee: Werner Punz
>         Attachments: webapp.war
> I have an application that I'll attach to this issue that can reproduce this issue. 
To reproduce you need to: 
> 1) Install webapp.war
> 2) navigate to index.xhtml
> 3) click the "add" button and select a file to upload ( any file it does not matter )
> 4) click the "upload" button
> The following error occurs: context.source is undefined  -> jsf.js.jsf:6422
> If I look at the jsf.js line 6422 I see the following:
>    var elementId = (context._mfInternal)? context._mfInternal["_mfSourceControlId"] :;
> The above line is in the processUpdate : function(request, context, node)  method.  I'm
not very familiar with the JS within MyFaces so I wanted to open up an issue and get some
feedback from the community.
> I see that other issues have been opened regarding RichFaces fileUpload such as :

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message