Error data payload description attribute
----------------------------------------

                 Key: MYFACES-3351
                 URL: https://issues.apache.org/jira/browse/MYFACES-3351
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.1.3, 2.0.9
            Reporter: Keith Wong
            Priority: Minor


According to JSF 2.0 and 2.1 spec section 14.4.2 table 14-6, the error data 
payload contains a description attribute describing the error.  It is missing 
in the implementation.

The standard descriptions of each error from the spec are quoted as follows for 
reference:

[httpError]: request status==null or request.status==undefined or 
request.status<200 or request.status >=300
[serverError]: The Ajax response contains an "error" element.
[malformedXML]: The Ajax response does not follow the proper format. See 
Section 1.4 "XML Schema Definition for Partial Responses"
[emptyResponse]: There was no Ajax response from the server.

Instead of having static description, it could be context sensitive such as 
including http status for httpError.

In addition, it could make use of the localized system message module in 
Message.js for the description message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to