faces
faces copied to clipboard
Provide response headers in Event Data Payload
I need to access the response headers in a callback function as defined in section 14.4.1. I propose to extend TABLE 14-4 Event Data Payload like this:
responseHeaders | The response headers (XMLHttpRequest.getAllResponseHeaders()); Not present for "begin" event;
Alternatively, it might make sense to add the XMLHttpRequest (or equivalent) object itself available in the payload. This would allow for greater flexibility.
Reason: In the system environment of one of our applications a non-standard HTTP proxy is setting response headers we have to evaluate and handle in Ajax requests. The callback mechansim is perfect for this and we made a POC with Mojarra 2.1.1-b03 that our needs are satisfied by just extending the event data payload as described.
Affected Versions
[2.1]
- Issue Imported From: https://github.com/javaee/javaserverfaces-spec/issues/975
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: Unassigned
@glassfishrobot Commented Reported by phelanward
@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
@glassfishrobot Commented @manfredriem said: Setting priority to Minor
@glassfishrobot Commented Parent-Task: JAVASERVERFACES_SPEC_PUBLIC-758
@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-975