[ 
https://issues.apache.org/jira/browse/MYFACES-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005109#comment-13005109
 ] 

Werner Punz edited comment on MYFACES-3043 at 3/10/11 3:39 PM:
---------------------------------------------------------------

Ok I am working on it, I will take the freedom while fixing this to perform a 
small refactoring which is needed
to keep the code maintainable in this part. The change is bigger in the way the 
response flow is performed.
All the error, success etc.. functions which currently are assigned at 
transport level now will be moved into the base request and be overridable via 
the usual ways. This makes more sense also in a way that the transport.js now 
is what it should be a factory which generates the correct request type and 
enqueues it optionally.

I have to run a lot of tests afterwards so expect the fixup code to be 
committed sometime next week probably.


      was (Author: werpu):
    Ok I am working on it, I will take the freedom while fixing this to perform 
a small refactoring which is needed
to keep the code maintainable in this part. The change is bigger in the way the 
response flow is performed.
All the error, success etc.. functions which currently are assigned at 
transport level now will be moved into the base request and be overridable via 
the usual ways. This makes more sense also in a way that the transport.js now 
is what it should be a factory which generates the correct request type and 
enqueues it optionally.

  
> Ajax: response(...) function breaks if request(...) has not been called 
> previously
> ----------------------------------------------------------------------------------
>
>                 Key: MYFACES-3043
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3043
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.4
>            Reporter: Nick Belaevski
>            Assignee: Werner Punz
>
> In RichFaces for file upload component we call jsf.ajax.response(...) method 
> to process contents of IFRAME element. The problem is that this call is not 
> preceded by call to jsf.ajax.request(...), making MyFaces fail:
> response : function(request, context) {
> this._q._curReq._response.processResponse(request, context);
> }
> this._q._curReq - is undefined.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to